Код: Выделить всё
"ReverseProxy": {
"Routes": {
"serviceA": {
"ClusterId": "serviceA-cluster",
"Match": {
"Path": "serviceA/{**catch-all}"
},
"Transforms": [
{
"PathRemovePrefix": "/serviceA"
}
]
}
},
"Clusters": {
"serviceA-cluster": {
"Destinations": {
"Destination1": {
"Address": "http://host:5000/"
}
}
}
}
}
Код: Выделить всё
[HttpPut]
[Route("serviceA/api/action/{id}")]
public async Task Update([FromRoute][Required] Guid id)
{
...
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... rp-routing
Мобильная версия