mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-09 08:14:02 +00:00
Initial commit
This commit is contained in:
parent
1da926d605
commit
638c6f8f2b
62 changed files with 372 additions and 90 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue