discourse/app/assets/javascripts/admin/addon/routes/admin-customize-form-templates-edit.js
2023-02-08 11:21:39 -08:00

13 lines
340 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
import FormTemplate from "admin/models/form-template";
export default class AdminCustomizeFormTemplatesEdit extends DiscourseRoute {
model(params) {
return FormTemplate.findById(params.id);
}
setupController(controller, model) {
controller.set("model", model);
}
}