17 lines
365 B
JavaScript
17 lines
365 B
JavaScript
import Route from 'consul-ui/routing/route';
|
|
|
|
export default class HealthchecksRoute extends Route {
|
|
model() {
|
|
const parent = this.routeName
|
|
.split('.')
|
|
.slice(0, -1)
|
|
.join('.');
|
|
return this.modelFor(parent);
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(...arguments);
|
|
controller.setProperties(model);
|
|
}
|
|
}
|