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

Writing router-level middleware functions

Router-level middleware functions are only executed inside a router. They are usually used when applying a middleware to a mount point only or to a specific path.