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.