23 lines
406 B
Plaintext
23 lines
406 B
Plaintext
|
import { ajax } from "discourse/lib/ajax";
|
||
|
|
||
|
export default Discourse.Route.extend({
|
||
|
queryParams: {
|
||
|
order: {
|
||
|
refreshModel: true
|
||
|
},
|
||
|
descending: {
|
||
|
refreshModel: true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
model(params) {
|
||
|
return ajax("/patrons/admin", {
|
||
|
method: "get",
|
||
|
data: {
|
||
|
order: params.order,
|
||
|
descending: params.descending
|
||
|
}
|
||
|
}).then(results => results);
|
||
|
}
|
||
|
});
|