Base solution for your next web application
Open Closed

Make API Parameters based on Routing #1505


User avatar
0
ofir1234 created

Hi.
We are using ABP for a website which is divided to three zones: red zone, green zone, yellow zone.
In the server side we want to know for each api call, from which zone it came from.
Our solution now is just sending the zone as a parameter for each api call.
What we want to do is to use routing for that. Is there a way changing the routing somehow to support this idea?
For example, all calls coming to /app/services/red/someAppServicewill/someMethod will actually go to the someMethod in the someAppService, and the parameter "zone" will be set to red.

Thanks in advance.


1 Answer(s)