Interface: RoutingOptions
Interface: RoutingOptions
Options for the Routing
decorator, extending router configuration.
Extends
Partial
<RouterConfig
>
Properties
bindings?
optional bindings: Record<string,
| BindingResolver
| IBoundModel>;
Custom function bindings for specific route behaviors.
Inherited from
Partial.bindings
defaults?
optional defaults: Record<string, unknown>;
Default parameter values for routes.
Inherited from
Partial.defaults
definitions?
optional definitions: RouteDefinition<StoneIncomingEvent, unknown>[];
Array of route definitions to be included in the router.
Inherited from
Partial.definitions
dependencyResolver?
optional dependencyResolver: DependencyResolver;
Resolver used to resolve dependencies.
Inherited from
Partial.dependencyResolver
dispatchers?
optional dispatchers: IDispatchers<StoneIncomingEvent, unknown>;
Dispatchers used for handling callable and controller-based routes.
Inherited from
Partial.dispatchers
eventEmitter?
optional eventEmitter: IEventEmitter;
Custom event emitter for handling application events.
Inherited from
Partial.eventEmitter
matchers?
optional matchers: IMatcher<StoneIncomingEvent, unknown>[];
List of matchers used to validate and match routes.
Inherited from
Partial.matchers
maxDepth?
optional maxDepth: number;
Maximum depth allowed in route definitions.
Inherited from
Partial.maxDepth
middleware?
optional middleware: MixedPipe<StoneIncomingEvent, unknown>[];
List of middleware applied during route resolution.
Inherited from
Partial.middleware
prefix?
optional prefix: string;
Base path prefix applied to all routes.
Inherited from
Partial.prefix
rules?
optional rules: Record<string, RegExp>;
Custom rules for route matching, defined as regular expressions.
Inherited from
Partial.rules
skipMiddleware?
optional skipMiddleware: boolean;
Skips middleware execution for specific routes.
Inherited from
Partial.skipMiddleware
strict?
optional strict: boolean;
Enables strict path matching.
Inherited from
Partial.strict