Middleware: Code That Runs on Every Request
Middleware is a function with (req, res, next) that Express runs on a request before the routes, in the order you add it, so a log line, a timer or a body reader is written once instead of in every route.
Updated

- Category
- Node.js
- Level
- Journeyman
- Tags
- <header>, Middleware in Express, nodejs, req and res, rest-api, Static Files in Express