I have a project running mvc 5 and web api 2.2 together, however each one has their own routing sytem.
The problem is that both respond to api.domain.com and both respond to www.domain.com
So I need that the api.domain.com would not have anything to do with, for instance, api.domain.com/blog, which is a url that should only belong to www.domain.com/blog. Same way I should not be able to access www.domain.com/api/...
I was thinking about checking the url in the Application Requet and run an if statement there, however it does not sound right to me.
Is it a matter of splitting them into two separate projects under the same solution and cross reference the projects/libraries?