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
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Closing the discussion here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
/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?
Beta Was this translation helpful? Give feedback.
All reactions