szurubooru/client/js/controllers/not_found_controller.js

19 lines
479 B
JavaScript
Raw Normal View History

'use strict';
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');
this._notFoundView = new NotFoundView(path);
}
2020-06-04 20:09:35 +02:00
}
module.exports = router => {
router.enter(null, (ctx, next) => {
ctx.controller = new NotFoundController(ctx.canonicalPath);
});
2020-06-04 20:09:35 +02:00
}