Skip to content
Docs Try Aspire

IYarpConfigurationBuilder.addRouteFromEndpoint

Method
📦 Aspire.Hosting.Yarp v13.2.0
interface IYarpConfigurationBuilder {
// ... omitted for brevity
addRouteFromEndpoint(
path: string,
endpoint: EndpointReference): YarpRoute;
}

Signature

method addRouteFromEndpoint
Adds a YARP route for an endpoint reference.
addRouteFromEndpoint(
path: string,
endpoint: EndpointReference): YarpRoute
path string
endpoint EndpointReference
YarpRoute

Defined on

This method is defined on the following type: