RouterAdd registers a new route definition.
Example:
routerAdd("GET", "/hello", (e) => { return e.json(200, {"message": "Hello!"})}, $apis.requireAuth()) Copy
routerAdd("GET", "/hello", (e) => { return e.json(200, {"message": "Hello!"})}, $apis.requireAuth())
Note that this method is available only in pb_hooks context.
Rest
Generated using TypeDoc
RouterAdd registers a new route definition.
Example:
Note that this method is available only in pb_hooks context.