Skip to main content
API Reference / modelence / server / RouteHandler
RouteHandler<T> = (params, context) => Promise<RouteResponse<T>> | RouteResponse<T>
Defined in: src/routes/types.ts:35

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
paramsRouteParams
contextPick<Context, "session" | "user">

Returns

Promise<RouteResponse<T>> | RouteResponse<T>