discourse-subscriptions/assets/javascripts/discourse/routes/admin-plugins-discourse-pat...

14 lines
303 B
Plaintext
Raw Normal View History

2019-09-23 03:53:05 -04:00
import { ajax } from "discourse/lib/ajax";
export default Discourse.Route.extend({
model(params) {
return ajax("/patrons/admin/subscriptions", {
method: "get",
data: {
order: params.order,
descending: params.descending
}
}).then(results => results);
}
});