RouterUse registers one or more global middlewares that are executed along the handler middlewares after a matching route is found.
Example:
routerUse((next) => { return (c) => { console.log(c.path()) return next(c) }}) Copy
routerUse((next) => { return (c) => { console.log(c.path()) return next(c) }})
Note that this method is available only in pb_hooks context.
Rest
Generated using TypeDoc
RouterUse registers one or more global middlewares that are executed along the handler middlewares after a matching route is found.
Example:
Note that this method is available only in pb_hooks context.