https redirection

This commit is contained in:
Ryan Peters 2022-10-04 22:28:21 -04:00
parent 43aa0aaa6e
commit c7d2f36868

View File

@ -14,8 +14,10 @@ var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseHttpsRedirection();
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseRouting();