From 9764af998a4c91196687b8d27693b935a243ab84 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 21 Mar 2024 14:54:11 +0000 Subject: Initial checkin following project regeneration to make post work --- Program.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Program.cs (limited to 'Program.cs') 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(); -- cgit v1.2.3