diff --git a/app/router.js b/app/router.js index 7c98f97a3a4..f604935288a 100644 --- a/app/router.js +++ b/app/router.js @@ -2,10 +2,10 @@ import EmberRouter from '@ember/routing/router'; import config from './config/environment'; import RouterScroll from 'ember-router-scroll'; -const Router = EmberRouter.extend(RouterScroll, { - location: config.locationType, - rootURL: config.rootURL, -}); +export default class Router extends EmberRouter.extend(RouterScroll) { + location = config.locationType; + rootURL = config.rootURL; +} Router.map(function() { this.route('logout'); @@ -52,5 +52,3 @@ Router.map(function() { this.route('catch-all', { path: '*path' }); }); - -export default Router;