style: use explicit type where non evident

This commit is contained in:
Oliver Booth 2023-08-04 00:38:44 +01:00
parent 7961c6957d
commit bfa6567224
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -1,11 +1,10 @@
var builder = WebApplication.CreateBuilder(args); WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages(); 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()) if (!app.Environment.IsDevelopment())
{ {
app.UseExceptionHandler("/Error"); app.UseExceptionHandler("/Error");
@ -17,9 +16,7 @@ app.UseHttpsRedirection();
app.UseStaticFiles(); app.UseStaticFiles();
app.UseRouting(); app.UseRouting();
app.UseAuthorization(); app.UseAuthorization();
app.MapRazorPages(); app.MapRazorPages();
app.Run(); app.Run();