14 lines
303 B
Plaintext
14 lines
303 B
Plaintext
|
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);
|
||
|
}
|
||
|
});
|