From de7639a3e956a6a9d5df50328e7f6df41278f348 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 24 May 2026 07:48:43 -0400 Subject: [PATCH] Dashboard: fix 500 on / from duplicate endpoint mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GatewayApplication.MapGatewayEndpoints registered MapGet("/", ...) that redirected to /health/live. After the dashboard added a Blazor component at @page "/", both endpoints matched GET / and the matcher threw AmbiguousMatchException, surfacing as a 500. The redirect predated the dashboard home page — drop it so / lands on Overview. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/ZB.MOM.WW.MxGateway.Server/GatewayApplication.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ZB.MOM.WW.MxGateway.Server/GatewayApplication.cs b/src/ZB.MOM.WW.MxGateway.Server/GatewayApplication.cs index d06a4e2..bd88648 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/GatewayApplication.cs +++ b/src/ZB.MOM.WW.MxGateway.Server/GatewayApplication.cs @@ -136,8 +136,6 @@ public static class GatewayApplication { endpoints.MapStaticAssets(ResolveStaticAssetsManifestPath()); - endpoints.MapGet("/", () => Results.Redirect("/health/live")); - endpoints.MapGet( "/health/live", () => Results.Ok(new GatewayHealthReply(