With the above dynamic configuration only the bottom one ist mapped accordingly. api/foo returns a 404.
I have also tried the following rule:
PathPrefix(`api`, `foo`)
However, when routing to /api/foo, I am now proxied to the service of /api/bar.
Does anyone know how to get this setup working with nested routes? Can I somehow create a router parent for api routes, and handle it that way? Or is this not currently possible with traefik, should I rather create a mapping, such as the following: /api-foo?
> curl localhost/api | jq .name # /api is a special path on whoami
"api"
> curl localhost/api/bar | grep Name
Name: bar
> curl localhost/api/foo | grep Name
Name: foo