mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:38:35 +08:00
e655e1863f
Co-Authored-By: Kris <shout@k-ris.com>
12 lines
273 B
JavaScript
12 lines
273 B
JavaScript
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 });
|
|
}
|
|
});
|