2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2022-12-12 19:53:08 -05:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminWebHooksRoute extends Route {
|
2016-06-15 13:49:57 -04:00
|
|
|
model() {
|
|
|
|
return this.store.findAll("web-hook");
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
2016-06-15 13:49:57 -04: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,
|
|
|
|
});
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|