0
0

Add UseStatusCodePages()

This commit is contained in:
Sergey Chebotar 2023-06-16 07:07:20 +03:00
parent f6f75d364f
commit b5e59e020a

View File

@ -33,9 +33,10 @@ builder.Services.AddRazorPages();
var app = builder.Build(); var app = builder.Build();
app.UseStaticFiles(); app.UseStaticFiles();
app.UseStatusCodePages();
app.MapControllers(); app.MapControllers();
app.MapDefaultControllerRoute(); app.MapDefaultControllerRoute();
app.MapRazorPages(); app.MapRazorPages();
app.UseAuthentication(); app.UseAuthentication();
app.UseAuthorization(); app.UseAuthorization();