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