Assume we have two apps (microservices) that comprise our "store" app
- orders and
- products
cd ../orders
cf push orders
curl orders.bosh-lite.com
cd ../products
cf push products
curl products.bosh-lite.com
But for example, maybe we want to use context paths instead of having orders.bosh-lite.com and products.bosh-lite.com
So istead of having separate top level urls:
orders.bosh-lite.com
products.bosh-lite.com
We want:
store.bosh-lite.com/orders --> orders app
store.bosh-lite.com/products --> products app
cf map-route orders bosh-lite.com --hostname store --path orders
cf map-route products bosh-lite.com --hostname store --path products
Note: In this case, the apps will need to be able to respond to "/orders" and "/products" respectively. The routing does not map "store.bosh-lite.com/orders" to the "/" of orders app.