Fork me on GitHub

I'm serving both a REST API and html content (templates with Selmer) and would like to have the api served from I would like the API docs at and the home page at but this means there will be route conflicts. I'm currently getting around this by using a top level path of /v1 for the API routes but was wondering if it's possible to differentiate routes by domain / virtual host? I noticed and the Python Flask framework does too but perhaps most people in this situation serve their API via