diff options
Diffstat (limited to 'src/middleware/not-found-handler.js')
| -rw-r--r-- | src/middleware/not-found-handler.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/middleware/not-found-handler.js b/src/middleware/not-found-handler.js new file mode 100644 index 0000000..cb0ee51 --- /dev/null +++ b/src/middleware/not-found-handler.js @@ -0,0 +1,9 @@ +'use strict'; + +const errors = require('feathers-errors'); + +module.exports = function() { + return function(req, res, next) { + next(new errors.NotFound('Page not found')); + }; +}; |
