import Service from 'ember-service';
import computed from 'ember-computed';
import getOwner from 'ember-owner/get';

export default Service.extend({
  router: computed(function () {
    return getOwner(this).lookup('router:main');
  }),
  transitionTo() {
    return this.get('router').transitionTo(...arguments);
  }
});
