Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

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

Install

npm i mini-rest-404

DownloadsWeekly Downloads

31

Version

0.0.10

License

MIT

Last publish

Collaborators

  • avatar