Refinements to auth

This commit is contained in:
2025-11-23 11:04:20 -05:00
parent d188d4fbd1
commit 87be3e9c68
3 changed files with 41 additions and 10 deletions
+3 -5
View File
@@ -23,7 +23,7 @@ builder.Services.AddDatabaseDeveloperPageExceptionFilter();
builder.Services.AddScoped<ClipboardService>();
builder.Services.AddScoped<StateContainer>(); // Server- side
builder.Services.AddScoped<StateContainer>(); // Server-side
builder.Services.AddSingleton<StateContainer>();//Client-side
// Add authentication options
@@ -59,9 +59,7 @@ app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute("default", "{controller}/{action}");
});
// Used for AuthController
app.MapControllerRoute("default", "{controller}/{action}");
app.Run();