Just use this in startup.cs:
app.UseFileServer();
It’s shorthand for:
app.UseDefaultFiles();
app.UseStaticFiles();
it avoids issues with having to have those in the correct order (as shown above)
Just use this in startup.cs:
app.UseFileServer();
It’s shorthand for:
app.UseDefaultFiles();
app.UseStaticFiles();
it avoids issues with having to have those in the correct order (as shown above)