mini-rest-404
v0.0.10
Published
404 Not Found handler for mini-rest project
Downloads
5
Maintainers
Readme
mini-rest-404
404 Not Found Express error handler for mini-rest project
Forwards new AppError('pageNotFound', req.originalUrl)
to next
middleware (assuming the next middleware is Error Handler.
If you have different needs regarding the functionality, please add a feature request.
Installation
npm install --save mini-rest-404
Usage
This line must be last after all the routes and middlewares except errorHandler:
app.use(require('mini-rest-404')());
app.use(require('mini-rest-error-handler')());
Credits
Links to package pages:
github.com npmjs.com travis-ci.org coveralls.io inch-ci.org
License
MIT