Skip to main content

Type Alias: RESTHandler()

RESTHandler: (c) => Promise<Response>

Defined in: src/api/types/handlers.ts:165

REST handler function type.

Parameters

c

Context<ChiveEnv>

Returns

Promise<Response>

Remarks

REST handlers receive the full Hono context and handle the request directly, including response formatting.