I use OWIN to selfhost (I'm not using IIS) my web api and I was reading a lot about web applications based on asp.net web api and angularJS. In most examples there where a default route of the api like
HttpSelfHostConfiguration config = new HttpSelfHostConfiguration(_baseAddress);
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
But I don't understand where the route to the index.html file of the angularJS frontend happens? I know how to get data when I'm calling an api request like api/person/5
. But which part of the code is responsible to route any unspecified api request to the main page of angularJS?