From 34e03cd981acc934c779c29400f6ade0cb9bf54a Mon Sep 17 00:00:00 2001 From: dwalker Date: Sun, 3 May 2026 00:13:27 -0400 Subject: initial commit --- dwalker.xyz/Program.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dwalker.xyz/Program.cs (limited to 'dwalker.xyz/Program.cs') diff --git a/dwalker.xyz/Program.cs b/dwalker.xyz/Program.cs new file mode 100644 index 0000000..42476c7 --- /dev/null +++ b/dwalker.xyz/Program.cs @@ -0,0 +1,24 @@ +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.UseRouting(); + +app.MapStaticAssets(); +app.MapRazorPages() + .WithStaticAssets(); + +app.Run(); -- cgit v1.2.3