Skip to content
Docs Try Aspire

withTransformPathRemovePrefix

Function
📦 Aspire.Hosting.Yarp v13.2.0
interface YarpRoute {
// ... omitted for brevity
withTransformPathRemovePrefix(prefix: string): YarpRoute;
}

Signature

method withTransformPathRemovePrefix
Adds the transform which will remove the matching prefix from the request path.
withTransformPathRemovePrefix(prefix: string): YarpRoute
prefix string
YarpRoute

Applies to

This function is an extension method on the following types: