2019-05-30 07:04:34 +02:00
|
|
|
import CustomWizardApi from '../models/custom-wizard-api';
|
|
|
|
|
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model(params) {
|
|
|
|
if (params.service === 'new') {
|
|
|
|
return {};
|
|
|
|
} else {
|
|
|
|
return CustomWizardApi.find(params.service);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model){
|
2019-05-31 09:54:11 +02:00
|
|
|
controller.set("api", model);
|
2019-05-30 07:04:34 +02:00
|
|
|
}
|
|
|
|
});
|