diff options
Diffstat (limited to 'client/js/controllers/not_found_controller.js')
| -rw-r--r-- | client/js/controllers/not_found_controller.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/js/controllers/not_found_controller.js b/client/js/controllers/not_found_controller.js index 8ceeef0..c99e308 100644 --- a/client/js/controllers/not_found_controller.js +++ b/client/js/controllers/not_found_controller.js @@ -1,18 +1,18 @@ -'use strict'; +"use strict"; -const topNavigation = require('../models/top_navigation.js'); -const NotFoundView = require('../views/not_found_view.js'); +const topNavigation = require("../models/top_navigation.js"); +const NotFoundView = require("../views/not_found_view.js"); class NotFoundController { constructor(path) { - topNavigation.activate(''); - topNavigation.setTitle('Not found'); + topNavigation.activate(""); + topNavigation.setTitle("Not found"); this._notFoundView = new NotFoundView(path); } } -module.exports = router => { +module.exports = (router) => { router.enter(null, (ctx, next) => { ctx.controller = new NotFoundController(ctx.canonicalPath); }); -} +}; |