@flow-state-dev/next
Functions
createNextHandler()
function createNextHandler(flowstate, options?): object;
Build the catch-all route handlers for a FlowState. Mount as:
export const { GET, POST, PATCH, DELETE } = createNextHandler(flowstate);
Parameters
flowstate
FlowState
options?
allowUnauthenticated?
boolean
Explicitly permit flows that trust a caller-supplied userId.
Returns
object
DELETE
DELETE: NextRouteHandler;
GET
GET: NextRouteHandler;
PATCH
PATCH: NextRouteHandler;
POST
POST: NextRouteHandler;