If ip1, ip2 request for GET /order/1, it goes to my-order1-webapi-service;
If ip3, ip4 request for GET /order/1, it goes to my-order2-webapi-service;
And the other requests go to my-order-webapi-service.
I ask for ChatGPT, it give me an configuration of below. But ocelot starts with exception that /order{catchall} has duplicate.
Hello, I'm using Ocelot as API gateway. And I'm encountering a situation.
As for same UpstreamPathTemplate, I need to proxy it to difference backend service base on request ip address.
Given current configuration
If ip1, ip2 request for GET /order/1, it goes to my-order1-webapi-service; If ip3, ip4 request for GET /order/1, it goes to my-order2-webapi-service; And the other requests go to my-order-webapi-service.
I ask for ChatGPT, it give me an configuration of below. But ocelot starts with exception that /order{catchall} has duplicate.
How could I change my configuration to solve it?
Specifications