Route to different Service based on header with same path #6493
Closed
pramodbabua
started this conversation in
General
Replies: 2 comments 2 replies
|
Unfortunately @pramodbabua you have to do it like that. It's the only way that
|
2 replies
|
Closing the discussion here. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
/api with header service=service1 should route to backend service 1
/api with header service=service2 should route to backed service 2
I was able to achieve it by writing HTTPRoute as below,
Is there a cleaner way to achieve this rather than rewriting the pathprefix for every match?
All reactions