diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-16 07:07:20 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-16 07:07:20 +0300 |
commit | b5e59e020ab9a7566c575acdb86470fb2f7254e1 (patch) | |
tree | 05b49640dd17cf3593c79f14e40b9aee7e966fdb | |
parent | f6f75d364fba97a5160dd1232086a903ca9bbaf2 (diff) |
Add UseStatusCodePages()
-rw-r--r-- | Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,9 +33,10 @@ builder.Services.AddRazorPages(); var app = builder.Build(); app.UseStaticFiles(); +app.UseStatusCodePages(); app.MapControllers(); app.MapDefaultControllerRoute(); -app.MapRazorPages(); +app.MapRazorPages(); app.UseAuthentication(); app.UseAuthorization(); |