I am working on an ASP.NET project. We have two main projects, and MVC website, and a WebApi2 application that it uses to interface with the datebase. All of the routes of the WebApi2 application are something like "/api/Entity" I would like it so that our main MVC site that users are actually hitting will be hosted in the domain root (ie. www.example.com), while being able to access the api at "www.example.com/api/Entity". Is there a way to do that without doing a bunch of IIS configuration, or changing my routes?
/api/
. Doesn't seem like a bunch of configuration/changing routes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.