Skip to content

RouteConfig

Defined in: src/core/types.ts:145

Individual route configuration.

TBindings = Record<string, unknown>

Worker bindings type, propagated from GatewayConfig.

optional metadata: Record<string, unknown>

Defined in: src/core/types.ts:153

Route-level metadata for logging/observability


optional methods: HttpMethod[]

Defined in: src/core/types.ts:149

Allowed HTTP methods. Defaults to all.


path: string

Defined in: src/core/types.ts:147

Route path pattern (Hono syntax, e.g. “/users/:id“)


pipeline: PipelineConfig<TBindings>

Defined in: src/core/types.ts:151

Pipeline to process this route