refactor(wbs-ux): route root authenticated users to Vue templates and map SPA fallback
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 14s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 23s
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 13s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 11s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 12s

This commit is contained in:
2026-07-25 11:51:24 +09:00
parent 1a06a01018
commit 24f288655f
+4 -2
View File
@@ -192,11 +192,11 @@ try
Log.Warning("Hangfire setup failed: {Message}", ex.Message); Log.Warning("Hangfire setup failed: {Message}", ex.Message);
} }
// Root redirect: unauthenticated → /Account/Login, authenticated → /Admin/Dashboard // Root redirect: unauthenticated → /Account/Login, authenticated → Vue 3 SPA /templates
app.MapGet("/", context => app.MapGet("/", context =>
{ {
if (context.User?.Identity?.IsAuthenticated ?? false) if (context.User?.Identity?.IsAuthenticated ?? false)
context.Response.Redirect("/Admin/Dashboard"); context.Response.Redirect("/templates");
else else
context.Response.Redirect("/Account/Login"); context.Response.Redirect("/Account/Login");
return Task.CompletedTask; return Task.CompletedTask;
@@ -210,6 +210,8 @@ try
}); });
app.MapRazorPages(); app.MapRazorPages();
app.MapFallbackToFile("index.html");
app.Run(); app.Run();
} }