Add UseStatusCodePages()
This commit is contained in:
parent
f6f75d364f
commit
b5e59e020a
@ -33,6 +33,7 @@ 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user