RouterUse registers one or more global middlewares that are executed along the handler middlewares after a matching route is found.
Example:
routerUse((e) => { console.log(e.request.url.path) return e.next()}) Copy
routerUse((e) => { console.log(e.request.url.path) return e.next()})
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.