How to reroute in axum not redirect?

I want Axum to reroute /foo endpoint to /bar endpoint and return the response. It should be purely server side and client side will not be aware of this.

Have you tried installing the /foo handler at the /bar url?

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.