* Defer logging to Failbot in error middleware until AFTER we finish responding * If headers have already been written, log to failbot and then delegate to the default error handler http://expressjs.com/en/guide/error-handling.html#the-default-error-handler * Comment tweak
Middleware
Each file in this directory exports an Express Middleware function.
For more info, see https://expressjs.com/en/guide/using-middleware.html
Subdirectories
There are subdirectories for different types of middleware:
- contextualizers modify the
req.contextobject that is used to render pages. - redirects handle... redirects!