I'm creating a website that will consist of two parts, one for customers and one for companies. I would like to give the company part its own subdomain, more presicley I want to give them a dashboard under dashboard.myapp.com like Stripe or Fauna. How would I go about doing this?
Should I split the app in two and have one for the dashboard.myapp.com domain and one for the www.myapp.com domain, or would it be sufficient to have them both in the same app and just check when a user is on the subdomain like in this answer?