diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-03-16 15:50:10 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-03-16 15:50:10 +0100 |
| commit | 8e05164678d302700c794feecd50d83357f7719d (patch) | |
| tree | ed5b167c75a2c4fdb5dcd8c409094b607698a0d5 /src/middleware/not-found-handler.js | |
| parent | b8bfbbe14bdb72e4feccb4652c48f4cdb2a5e199 (diff) | |
feathers stuff
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')); + }; +}; |
