blob: c99e30878617841ff0dc3e4d81e224217522cfd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"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);
}
}
module.exports = (router) => {
router.enter(null, (ctx, next) => {
ctx.controller = new NotFoundController(ctx.canonicalPath);
});
};
|