summaryrefslogtreecommitdiff
path: root/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs
diff options
context:
space:
mode:
authorDustin Walker <dustin.walker@email.wsu.edu>2025-09-19 10:53:16 -0400
committerDustin Walker <dustin.walker@email.wsu.edu>2025-09-19 10:53:16 -0400
commitda01a2bf50d3f88f163f70c7d4d2933682c83c20 (patch)
treebb24f8436d69898fd4491c4c31ecb3eaa4ec91f8 /SovereignDemesneAzure/SovereignDemesneRazor/Program.cs
parent280f1a7cfbb1b90b0cb385d0ea4432a5ef115aba (diff)
dark theme enforced
Diffstat (limited to 'SovereignDemesneAzure/SovereignDemesneRazor/Program.cs')
-rw-r--r--SovereignDemesneAzure/SovereignDemesneRazor/Program.cs45
1 files changed, 22 insertions, 23 deletions
diff --git a/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs b/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs
index 3fc1946..3a0ade0 100644
--- a/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs
+++ b/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs
@@ -1,35 +1,34 @@
-namespace SovereignDemesneRazor
+namespace SovereignDemesneRazor;
+
+public class Program
{
- public class Program
+ public static void Main(string[] args)
{
- public static void Main(string[] args)
- {
- var builder = WebApplication.CreateBuilder(args);
+ WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
- // Add services to the container.
- builder.Services.AddRazorPages();
+ // Add services to the container.
+ builder.Services.AddRazorPages();
- var app = builder.Build();
+ WebApplication 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();
- }
+ // 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.UseHttpsRedirection();
- app.UseRouting();
+ app.UseRouting();
- app.UseAuthorization();
+ app.UseAuthorization();
- app.MapStaticAssets();
- app.MapRazorPages()
- .WithStaticAssets();
+ app.MapStaticAssets();
+ app.MapRazorPages()
+ .WithStaticAssets();
- app.Run();
- }
+ app.Run();
}
}