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";
|
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminDashboardReportsRoute extends DiscourseRoute {
|
2018-12-19 08:44:43 -05:00
|
|
|
model() {
|
2020-04-22 04:52:50 -04:00
|
|
|
return ajax("/admin/reports");
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
2018-12-19 08:44:43 -05:00
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.setProperties({ model: model.reports, filter: null });
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|