Skip to content

[V] $autoRoute

const $autoRoute: AutoRouteDecorator;

@autoRoute enables automatic route generation for an operation or interface.

When applied to an operation, it automatically generates the operationโ€™s route based on path parameter metadata. When applied to an interface, it causes all operations under that scope to have auto-generated routes.