const errors = require('./index');

module.exports = function () {
  return function (req, res, next) {
    next(new errors.NotFound('Page not found'));
  };
};

const errors = require('./index');

module.exports = function () {
  return function (req, res, next) {
    next(new errors.NotFound('Page not found | Requested page/route: ' + req.url));
  };
};

Add req.url to notFound handler message (#105)