UNPKG

ember-emeis

Version:

The frontend for the emeis user management service

14 lines (11 loc) 360 B
import { getOwner } from "@ember/application"; import Route from "@ember/routing/route"; import { service } from "@ember/service"; export default class IndexRoute extends Route { @service hostRouter; beforeModel() { const owner = getOwner(this); const mountPoint = owner.mountPoint; this.hostRouter.transitionTo(`${mountPoint}.users`); } }