I want to run different apps on one server, but the routing between them should be made with paths and not with sub-domains.
I read about bouncy and the connect vhost middleware, but they just allow me to route sub-domains to different ports.
I want something like this:
domain.com
-> app1
domain.com/api
-> app2, in order that /api
is /
for app2
domain.com/some/path
-> app3, in order that /some/path
is /
for app3
The position in the route tree should be transparent to the apps and it would be nice if I don't have to restart any other app when adding a new one.
Do I have to code it myself or is there some solution out there?