2019-10-24 00:39:32 +08:00
|
|
|
import Route from "@ember/routing/route";
|
2022-12-13 08:53:08 +08:00
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
export default class AdminWebHooksRoute extends Route {
|
2016-06-16 01:49:57 +08:00
|
|
|
model() {
|
|
|
|
return this.store.findAll("web-hook");
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
2016-06-16 01:49:57 +08:00
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.setProperties({
|
|
|
|
model,
|
2023-10-09 11:35:31 +08:00
|
|
|
groupedEventTypes: model.extras.grouped_event_types,
|
2016-06-16 01:49:57 +08:00
|
|
|
defaultEventTypes: model.extras.default_event_types,
|
|
|
|
contentTypes: model.extras.content_types,
|
|
|
|
deliveryStatuses: model.extras.delivery_statuses,
|
|
|
|
});
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|