discourse/app/assets/javascripts/admin/routes/admin-dashboard-reports.js.es6
2019-04-01 12:39:49 +02:00

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 });
}
});