2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2017-06-28 16:56:44 -04:00
|
|
|
import WatchedWord from "admin/models/watched-word";
|
|
|
|
|
2019-10-22 09:46:10 -04:00
|
|
|
export default DiscourseRoute.extend({
|
2017-06-28 16:56:44 -04:00
|
|
|
queryParams: {
|
|
|
|
filter: { replace: true },
|
|
|
|
},
|
|
|
|
|
|
|
|
model() {
|
|
|
|
return WatchedWord.findAll();
|
|
|
|
},
|
|
|
|
|
2021-05-27 12:20:26 -04:00
|
|
|
afterModel(model) {
|
|
|
|
const controller = this.controllerFor("adminWatchedWords");
|
|
|
|
controller.set("allWatchedWords", model);
|
2017-06-28 16:56:44 -04:00
|
|
|
},
|
|
|
|
});
|