mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 10:45:17 +08:00
13 lines
340 B
JavaScript
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);
|
||
|
}
|
||
|
}
|