diff options
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(); |