MERN Quick Start Guide
上QQ阅读APP看书,第一时间看更新

Writing middleware functions

Middleware functions are mainly used to make changes in the request and response object. They are executed in sequence, one after another, but if a middleware functions does not pass control to the next one, the request is left hanging.