C# UseFileServer

Date: 2023-12-04

app.UseFileServer(new FileServerOptions
{
    FileProvider = new PhysicalFileProvider(Path.Combine(builder.Environment.ContentRootPath, "public")),
    RequestPath = "",
    EnableDirectoryBrowsing = true,
    EnableDefaultFiles = true
});
81690cookie-checkC# UseFileServer