I have an umbrella app. Most of the apps are regular OTP apps. I also have an Api app that is a phoenix app (has an endpoint/router/etc.) This is the main app for incoming requests. I am adding an Admin app to my umbrella which will also have an endpoint/router/etc, but I want it totally separated from the Api. Currently my Api forwards /admin calls to the admin endpoint like this:
scope “/admin” do
This all works great, and it renders the page, except the
/images/something.png instead of
/admin/images/something.png. Since all paths generated in the Admin app, will be routed through the Api app, is there a way to append “/admin” to all path helpers in the Admin app?