Module: lib/routes/errors

RESTful routes for handling invalid url requests.
Author:
  • Jose Nicolas Mora
Source:

Requires

  • module:express
  • module:router

Methods

(inner) get/*(path, middleware)

Presents a user-friendly error if the user requests a route that doesn't exist.
Parameters:
Name Type Description
path string The route requested.
middleware callback The callback function containing the logic of this route.
Source: