summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-05-30 07:18:47 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-05-30 07:30:44 +0300
commit81c1fc0c14253457c3c4fc24735e787ace1db70b (patch)
treefed58558300250876657fe6f9b0880af6d11f9f0 /Program.cs
parent55b30fc75acb554770dc171b5ea54ad821b81d00 (diff)
Add index razor page
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index cfc572a..361be3e 100644
--- a/Program.cs
+++ b/Program.cs
@@ -26,12 +26,14 @@ builder.Services.Configure<IdentityOptions>( opts =>
});
builder.Services.AddControllersWithViews();
+builder.Services.AddRazorPages();
var app = builder.Build();
app.UseStaticFiles();
app.MapControllers();
app.MapDefaultControllerRoute();
+app.MapRazorPages();
app.UseAuthentication();
app.UseAuthorization();