RouterAdd registers a new route definition.
Example:
routerAdd("GET", "/hello", (c) => { return c.json(200, {"message": "Hello!"})}, $apis.requireAdminOrRecordAuth()) Copy
routerAdd("GET", "/hello", (c) => { return c.json(200, {"message": "Hello!"})}, $apis.requireAdminOrRecordAuth())
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.