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