diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-03-21 14:54:11 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-03-21 14:54:11 +0000 |
commit | 9764af998a4c91196687b8d27693b935a243ab84 (patch) | |
tree | d5f4bf49be0db32f8cfc78a4d76df82be14a2060 /Program.cs |
Initial checkin following project regeneration to make post work
Diffstat (limited to 'Program.cs')
-rw-r--r-- | Program.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..d5c8559 --- /dev/null +++ b/Program.cs @@ -0,0 +1,28 @@ +using download_admin; +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +builder.Services.AddRazorPages(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (!app.Environment.IsDevelopment()) +{ + app.UseExceptionHandler("/Error"); + // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. + app.UseHsts(); +} + +app.UseHttpsRedirection(); +app.UseStaticFiles(); + +app.UseRouting(); + +app.UseAuthorization(); + +app.MapRazorPages(); + +Config.Settings = app.Configuration; + +app.Run(); |