I want all service calls to go to /api but the content pages should work at the root. So “http://www.example.com” would render the content pages HTML but everything else in SS should be at “http://www.example.com/api”.
I have been using GetRoutesAttributes to add the /api prefix. This works for the custom routes but has some problems.
- The predefined routes are still at “http://www.example.com” (without /api)
- NativeTypes keeps “http://www.example.com” (without /api) as the base URL and adds /api to every generated route. I want the base URL to be “http://www.example.com/api”
- Swagger works in a similar way to NativeTypes, the base URL is “http://www.example.com” (without /api), then all the services get nested under “api”
Is it possible to host two ServiceStack instances together (like can be done with MVC and SS)? I’m thinking one could handle the content pages and the other could be hosted at /api (again like you would if it as MVC and SS).