Creating a URL with parts of the path

Using zuul, is it possible to configure routes to use parts from the path in the url?

This metacode configuration using regular regexp explains what I would like to do.

zuul: routes: foobar: path: /foo/{.*}/bar/{.*} url: http://foobar/\2/\1 

So / foo / 123 / bar / 456 will be redirected to http: // foobar / 456/123

+7
spring-cloud netflix-zuul
source share
1 answer
+2
source share

All Articles