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

Failed to ignore revisions in .git-blame-ignore-revs.

17 lines
438 B
JavaScript
Raw Normal View History

import Route from "@ember/routing/route";
export default Route.extend({
2016-06-16 01:49:57 +08:00
model() {
2018-06-15 23:03:24 +08:00
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
});
}
});