mirror of
https://github.com/feathersjs/feathers.git
synced 2026-01-25 15:23:13 +00:00
10 lines
276 B
JavaScript
10 lines
276 B
JavaScript
const errors = require('./index');
|
|
|
|
module.exports = function ({ verbose = false } = {}) {
|
|
return function (req, res, next) {
|
|
const { url } = req;
|
|
const message = `Page not found${verbose ? ': ' + url : ''}`;
|
|
next(new errors.NotFound(message, { url }));
|
|
};
|
|
};
|