• RouterAdd registers a new route definition.

    Example:

    routerAdd("GET", "/hello", (c) => {
    return c.json(200, {"message": "Hello!"})
    }, $apis.requireAdminOrRecordAuth())

    Note that this method is available only in pb_hooks context.

    Parameters

    Returns void

Generated using TypeDoc