Use of UseStaticFiles and its place in pipeline?
app.UseStaticFiles() enables serving files from wwwroot.
Important: It must be added before routing or endpoints so static files
are served without invoking controller logic.
app.UseStaticFiles();
app.UseRouting();
app.UseEndpoints(...);