express-nemo-route-not-found

A middleware for express to add a route that handles all not found routes

Usage no npm install needed!

<script type="module">
  import expressNemoRouteNotFound from 'https://cdn.skypack.dev/express-nemo-route-not-found';
</script>

README

express-nemo-route-not-found

A route middleware that handle unhandled routes and returns 404 when server has no handler for that request.

Options

Name Required Default value Description
notFoundResponseTemplate func A function receiving the request and response object, returning a client response.