ScopeConfig
Defined in: src/core/scope.ts:39
Configuration for a route scope (group).
Type Parameters
Section titled “Type Parameters”TBindings
Section titled “TBindings”TBindings = Record<string, unknown>
Worker bindings type, propagated to child routes.
Properties
Section titled “Properties”metadata?
Section titled “metadata?”
optionalmetadata:Record<string,unknown>
Defined in: src/core/scope.ts:47
Metadata merged into every child route (child wins on conflict)
policies?
Section titled “policies?”
optionalpolicies:Policy[]
Defined in: src/core/scope.ts:43
Policies prepended to every child route’s pipeline policies
prefix
Section titled “prefix”prefix:
string
Defined in: src/core/scope.ts:41
Path prefix prepended to all child routes (e.g. “/api/v1”)
routes
Section titled “routes”routes:
RouteConfig<TBindings>[]
Defined in: src/core/scope.ts:45
Child routes to scope