Adding a prefix to a specific service url

All,

I'm try to configure Traefik to load balance http traffic to one or more urls. However I need I need each url to have a different path.

service:
appservice:
loadbalancer:
servers:
-url http://foo.com/foo1
-url http://bar.com/bar1

What are my options?

What should happen when the original request is example.com/app/login?

The request should be sent to one of the url(s,)

Http://foo.com/foo/app/login?
Or
Http://bar com/bar/app/login?

The request should go to example1.com/example1/app/login? Or example2.com/example2/app/login?.

I don’t think that’s possible. But I am just a user, not an expert.