We have an angular application behind an AWS ALB. The load balancer directs traffic to the angular app when requests are made to a certain route example.com/balancer-route/.... But this then means that requests hit the angular app with the additional balancer-route in the URI. We need these to be ignored so files are served correctly.
Is there an equivalent to app.UseBasePath in C#? In C# this would essential ignore the /balancer-route part of the requests and serve the endpoints as normal. It would also continue to serve requests when the base path is not present.
We're aware this can be solved using NGINX but would prefer an application based solution where the path could be passed to the application at runtime.