|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
const Plan = Discourse.Model.extend({
|
|
destroy() {}
|
|
});
|
|
|
|
Plan.reopenClass({
|
|
find() {
|
|
return ajax("/patrons/admin/plans", { method: "get" }).then(result =>
|
|
result.plans.map(plan => Plan.create(plan))
|
|
);
|
|
}
|
|
});
|
|
|
|
export default Plan;
|