discourse/app/assets/javascripts/admin/addon/routes/admin-web-hooks.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
463 B
JavaScript
Raw Normal View History

import Route from "@ember/routing/route";
export default class AdminWebHooksRoute extends Route {
2016-06-16 01:49:57 +08:00
model() {
return this.store.findAll("web-hook");
}
2016-06-16 01:49:57 +08:00
setupController(controller, model) {
controller.setProperties({
model,
eventTypes: model.extras.event_types,
defaultEventTypes: model.extras.default_event_types,
contentTypes: model.extras.content_types,
deliveryStatuses: model.extras.delivery_statuses,
});
}
}