RouteHandler<Defined in: src/routes/types.ts:35T> = (params,context) =>Promise<RouteResponse<T>> |RouteResponse<T>
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Parameters
| Parameter | Type |
|---|---|
params | RouteParams |
context | Pick<Context, "session" | "user"> |
Returns
Promise<RouteResponse<T>> | RouteResponse<T>