GLOSSARY · A WORD, UNPACKED
middleware
a function that runs between the request arriving and the response being sent.
A little more detail
Middleware sees the request, the response, and next. It can log, parse JSON, reject the caller, or pass the same request onward. Order is the behavior: a function that sends a response stops everything registered after it. Forgetting next, and also not sending a response, leaves the request hanging.
See it in practice
These lessons pair the idea with examples you can change and run.