Spring Data Rest - Proxy path not including link path

Viewed 2044

I'm proxying a Spring REST backend like so:

Backend: http://backend:8080

Proxied localhost:

localhost:3000/api/backend -> http://backend:8080

If I browse locally to a proxied endpoint, it will proxy the request, the links, however, do not include the proxy path, i.e.

GET localhost:3000/api/backend/people

"href": "http://localhost:3000/people"

I would expect this to be:

"href": "http://localhost:3000/api/backend/people"

There any way to fix this?

Thanks!

1 Answers
Related