mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:48:24 +08:00
17 lines
438 B
JavaScript
17 lines
438 B
JavaScript
import Route from "@ember/routing/route";
|
|
export default Route.extend({
|
|
model() {
|
|
return this.store.findAll("web-hook");
|
|
},
|
|
|
|
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
|
|
});
|
|
}
|
|
});
|