I have an mvc application running on mydomain.comand I added a wcf web project to a web project.
I can access the rest service by going to mydomain.com/MyResource, but I really want it to MyResourcework ONLY if I go to api.myDomain.com/MyResourceand mydomain.com/MyResourceto find the controller with the name MyResourceControllerand throw an error if it does not find it.
How can i do this?
source
share