diff options
| author | dwalker <dwalker@dwalker.xyz> | 2026-05-03 00:13:27 -0400 |
|---|---|---|
| committer | dwalker <dwalker@dwalker.xyz> | 2026-05-03 00:13:27 -0400 |
| commit | 34e03cd981acc934c779c29400f6ade0cb9bf54a (patch) | |
| tree | 02c35db6e3baf407a2572b449b35ef067e5d24ac /dwalker.xyz/Program.cs | |
initial commit
Diffstat (limited to 'dwalker.xyz/Program.cs')
| -rw-r--r-- | dwalker.xyz/Program.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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(); |
