Skip to content

[F] setRoute

function setRoute(
context,
entity,
details
): void;

Records a route fragment and optionally marks an operation as sharing its route. Repeated namespace routes must agree; a conflicting namespace fragment reports a diagnostic and leaves the original fragment unchanged. Passing shared: false does not clear an existing shared mark.

ParameterType
contextDecoratorContext
entityOperation | Namespace | Interface
detailsRoutePath

void