Reputation:
I'd like to start a new website and build it out as two separate projects under the same visual studio solution. One project will be used for the website and the other project will be used as an API.
I have the "UI" project setup as the startup project with project URL http://localhost:49770/ and the "API" project setup with project URL "http://localhost:49770/API/". The project compiles and runs correctly but requests to http://localhost:49770/API/ are getting trapped by the UI project and displaying a 404 error. How can I configure the UI project to stop trapping requests to the API project?
Edit: I figured out that the WebAPI project is accessible at http://localhost:49770/API/API/. Is there a way to get it to be accessible at http://localhost:49770/API/?
Upvotes: 0
Views: 514
Reputation:
Figured it out on my own. Here are the steps if anyone is interested
Now, your MVC project will be accessible at http://localhost:49770/ and your API will be accessible at http://localhost:49770/API/
Upvotes: 1