mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-24 06:53:39 +00:00
15 lines
282 B
JavaScript
15 lines
282 B
JavaScript
import { ajax } from "discourse/lib/ajax";
|
|
import EmberObject from "@ember/object";
|
|
|
|
const Customer = EmberObject.extend({
|
|
save() {
|
|
const data = {
|
|
source: this.source,
|
|
};
|
|
|
|
return ajax("/s/customers", { method: "post", data });
|
|
},
|
|
});
|
|
|
|
export default Customer;
|