How can I get asp.net core to serve an index.html file from inside my wwwroot?
The reason I want to do this is because I an developing an angular 4 app using the ang
app.UseDefaultFiles(new DefaultFilesOptions {
DefaultFileNames = new List { "index.html" }
});
app.UseStaticFiles();
This is optimal since the UseDefaultFiles URL rewriter will only search for index.html, and not for the legacy files: default.htm, default.html, and index.htm.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-2.2#serve-a-default-document