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,
|
|
|
|
eventTypes: model.extras.event_types,
|
|
|
|
defaultEventTypes: model.extras.default_event_types,
|
|
|
|
contentTypes: model.extras.content_types,
|
|
|
|
deliveryStatuses: model.extras.delivery_statuses,
|
|
|
|
});
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|