From 24f288655f1c8cb3c9eb94b8247e249b1b555ed0 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 25 Jul 2026 11:51:24 +0900 Subject: [PATCH] refactor(wbs-ux): route root authenticated users to Vue templates and map SPA fallback --- src/dotnet/QuantEngine.Web/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dotnet/QuantEngine.Web/Program.cs b/src/dotnet/QuantEngine.Web/Program.cs index e8c9681d..691ae83e 100644 --- a/src/dotnet/QuantEngine.Web/Program.cs +++ b/src/dotnet/QuantEngine.Web/Program.cs @@ -192,11 +192,11 @@ try 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 => { if (context.User?.Identity?.IsAuthenticated ?? false) - context.Response.Redirect("/Admin/Dashboard"); + context.Response.Redirect("/templates"); else context.Response.Redirect("/Account/Login"); return Task.CompletedTask; @@ -210,6 +210,8 @@ try }); app.MapRazorPages(); + app.MapFallbackToFile("index.html"); + app.Run(); }