Middleware - evan-401-advanced-javascript/seattle-javascript-401d31 GitHub Wiki
Middleware are functions that sit in your server files with access to the request and response objects. Middleware allows you to to perform several important tasks including: Executing code, making changes to the request/response objects, calling the next middleware function. There are several kinds of middleware function but the most important ones are:
- Application level middleware
- Route level middleware
- Error handling middleware