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
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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user