From bfa6567224f07c0034b57917d1eb7ac1d442d1e5 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 4 Aug 2023 00:38:44 +0100 Subject: [PATCH] style: use explicit type where non evident --- oliverbooth.dev/Program.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/oliverbooth.dev/Program.cs b/oliverbooth.dev/Program.cs index bc275e4..7b26c0c 100644 --- a/oliverbooth.dev/Program.cs +++ b/oliverbooth.dev/Program.cs @@ -1,11 +1,10 @@ -var builder = WebApplication.CreateBuilder(args); +WebApplicationBuilder builder = WebApplication.CreateBuilder(args); -// Add services to the container. builder.Services.AddRazorPages(); +builder.Services.AddRouting(options => options.LowercaseUrls = true); -var app = builder.Build(); +WebApplication app = builder.Build(); -// Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); @@ -17,9 +16,7 @@ app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); - app.UseAuthorization(); - app.MapRazorPages(); app.Run();