mini-rest-404

0.0.10 • Public • Published

npm version Build Status Coverage Status Code Climate Inch CI

Dependency Status devDependency Status

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

Alexander

Links to package pages:

github.com   npmjs.com   travis-ci.org   coveralls.io   inch-ci.org

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.10
    0
    • latest

Version History

Package Sidebar

Install

npm i mini-rest-404

Weekly Downloads

0

Version

0.0.10

License

MIT

Last publish

Collaborators

  • alykoshin