- appRoute<
C extends ActionContext = ActionContext,
I extends z.ZodType<any, any, any, I> = z.ZodTypeAny,
O extends z.ZodType<any, any, any, O> = z.ZodTypeAny,
S extends z.ZodType<any, any, any, S> = z.ZodTypeAny,
>(
action: Action<I, O, S, ActionRunOptions<S>>,
opts?: { contextProvider?: ContextProvider<C, I> },
): (req: NextRequest) => Promise<NextResponse<unknown>> Parameters
- action: Action<I, O, S, ActionRunOptions<S>>
Optional
opts: { contextProvider?: ContextProvider<C, I> }