Skip to content

ScopeConfig

Defined in: src/core/scope.ts:39

Configuration for a route scope (group).

TBindings = Record<string, unknown>

Worker bindings type, propagated to child routes.

optional metadata: Record<string, unknown>

Defined in: src/core/scope.ts:47

Metadata merged into every child route (child wins on conflict)


optional policies: Policy[]

Defined in: src/core/scope.ts:43

Policies prepended to every child route’s pipeline policies


prefix: string

Defined in: src/core/scope.ts:41

Path prefix prepended to all child routes (e.g. “/api/v1”)


routes: RouteConfig<TBindings>[]

Defined in: src/core/scope.ts:45

Child routes to scope