Kestrel and ASP.NET Core MVC use custom base path

ryudice picture ryudice · Oct 20, 2016 · Viewed 11.9k times · Source

How can you mount your app on a different base path?

For example, my controller's route is /api/keywords, but when running the web server I want the basepath to be /development, so my controller route would be /development/api/keywords. I would rather not have to modify my controllers. In old Web API versions you could mount an OWIN app in a different path so I'm looking to do something similar.