addRouteFromResource
Function
interface IYarpConfigurationBuilder { // ... omitted for brevity addRouteFromResource( path: string, resource: IResourceWithServiceDiscovery): YarpRoute;}Signature
method
addRouteFromResource Adds a YARP route for a resource that supports service discovery.
addRouteFromResource( path: string, resource: IResourceWithServiceDiscovery): YarpRouteParameters
path string resource IResourceWithServiceDiscovery Returns
YarpRoute Applies to
This function is an extension method on the following types: