initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
6
magnus/middleware/notFound.js
Normal file
6
magnus/middleware/notFound.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
"use strict";
|
||||
var HttpError = require("../lib/httpError");
|
||||
|
||||
module.exports = function(req, res, next) {
|
||||
return next(new HttpError(404, 'Page not found!'));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue