Merge branch 'master' of http://git2.aycode.com/Adam/MissnationBlazor
This commit is contained in:
commit
c9455f3049
|
|
@ -1,4 +1,5 @@
|
|||
using Microsoft.AspNetCore.ResponseCompression;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
|
@ -20,7 +21,13 @@ else
|
|||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseBlazorFrameworkFiles();
|
||||
app.UseStaticFiles();
|
||||
app.UseStaticFiles(new StaticFileOptions()
|
||||
{
|
||||
ServeUnknownFileTypes = true
|
||||
//FileProvider = new PhysicalFileProvider(
|
||||
// Path.Combine(Directory.GetCurrentDirectory(), @"Images")),
|
||||
//RequestPath = new PathString("/app-images")
|
||||
});
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue