Static files
This commit is contained in:
parent
3428ee3820
commit
127c2aca6f
|
|
@ -1,4 +1,5 @@
|
||||||
using Microsoft.AspNetCore.ResponseCompression;
|
using Microsoft.AspNetCore.ResponseCompression;
|
||||||
|
using Microsoft.Extensions.FileProviders;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
|
@ -20,7 +21,13 @@ else
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
app.UseBlazorFrameworkFiles();
|
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();
|
app.UseRouting();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue