Hi ,
In my project,I have to do the conditional routing where we have two objects like admin and Nonadmin in the url.
So,Can anyone please help me with the javascript to route the traffic to two different target endpoint according to pathsuffix admin and nonadmin.
Url will look like this :-
1.a/b/c/1.0/admin
2.a/b/c/1.0/Nonadmin
Like this I did the conditional routing but I need one Js to route the traffic according to pathsuffix
<HTTPProxyConnection>
<BasePath>/a/b/c/1.1/</BasePath>
</HTTPProxyConnection>
<RouteRule name="conditional">
<TargetEndpoint>conditionaltarget</TargetEndpoint>
<Condition>conditionalrouting = true</Condition>
</RouteRule>
<RouteRule name="default">
<TargetEndpoint>defaulttarget</TargetEndpoint>
</RouteRule>