I have an Angular 2 application created with Angular CLI. This has to call a .NET 4.6 Web API. The route setup of this is driving me nuts.
For Angular, the default folde
I just couldn't get Dmitriy's answer to work for me, but he did put me on the right track.
I needed two rules: One to serve the Angular app from the root while maintaining the Web API /api/ routing, and another to serve the default document.
/api/
Here they are: