discourse-subscriptions/assets/javascripts/discourse/models/customer.js.es6

14 lines
243 B
Plaintext
Raw Normal View History

2019-12-11 20:59:26 -05:00
import { ajax } from "discourse/lib/ajax";
const Customer = Discourse.Model.extend({
save() {
const data = {
source: this.source
};
return ajax("/s/customers", { method: "post", data });
}
});
export default Customer;