From 92beadb3fef925167550baafad91b4488b238ecf Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 26 Jan 2020 20:28:06 +0100 Subject: [PATCH] router: Convert to ES6 class --- app/router.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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;