Initial commit

This commit is contained in:
Mark J Price 2022-09-24 09:10:26 +01:00
parent 1da926d605
commit 638c6f8f2b
62 changed files with 372 additions and 90 deletions

View file

@ -7,6 +7,9 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddNorthwindContext();
builder.Services.AddRequestDecompression();
/*
builder.WebHost.ConfigureKestrel((context, options) =>
{
options.ListenAnyIP(5001, listenOptions =>
@ -15,6 +18,7 @@ builder.WebHost.ConfigureKestrel((context, options) =>
listenOptions.UseHttps(); // HTTP/3 requires secure connections
});
});
*/
var app = builder.Build();
@ -51,6 +55,8 @@ app.Use(async (HttpContext context, Func<Task> next) =>
app.UseHttpsRedirection();
app.UseRequestDecompression();
app.UseDefaultFiles(); // index.html, default.html, and so on
app.UseStaticFiles();