radio/magnus/middleware/notFound.js
2018-08-05 00:48:17 +03:00

7 lines
163 B
JavaScript

"use strict";
var HttpError = require("../lib/httpError");
module.exports = function(req, res, next) {
return next(new HttpError(404, 'Page not found!'));
};