mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 17:53:45 +08:00
12 lines
273 B
Plaintext
12 lines
273 B
Plaintext
|
import { ajax } from "discourse/lib/ajax";
|
||
|
|
||
|
export default Discourse.Route.extend({
|
||
|
model() {
|
||
|
return ajax("/admin/reports").then(json => json);
|
||
|
},
|
||
|
|
||
|
setupController(controller, model) {
|
||
|
controller.setProperties({ model: model.reports, filter: null });
|
||
|
}
|
||
|
});
|