2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2018-12-19 08:44:43 -05:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
|
2019-10-22 09:46:10 -04:00
|
|
|
export default DiscourseRoute.extend({
|
2018-12-19 08:44:43 -05:00
|
|
|
model() {
|
|
|
|
return ajax("/admin/reports").then(json => json);
|
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.setProperties({ model: model.reports, filter: null });
|
|
|
|
}
|
|
|
|
});
|