Lead gateway overview with readable fault context

This commit is contained in:
Joseph Doherty
2026-11-13 19:30:52 -05:00
parent c9a6c31cb8
commit b06921ce85
42 changed files with 2113 additions and 47 deletions
+4
View File
@@ -20,5 +20,9 @@ var app = builder.Build();
app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider(Path.GetFullPath("../../../src/ZB.MOM.WW.MxGateway.Server/wwwroot")) });
app.UseStaticFiles();app.UseAntiforgery();
app.MapRazorComponents<FixtureApp>().AddInteractiveServerRenderMode();
app.MapPost("/fixtures/snapshot/{scene}",(string scene, IDashboardSnapshotService source) => {
if (scene is not ("healthy" or "mixed" or "zero")) return Results.BadRequest();
((StubSnapshotService)source).Scene = scene; return Results.Ok(new { scene, syntheticOnly=true });
});
app.MapGet("/provenance",()=>new { theme=typeof(ZB.MOM.WW.Theme.ThemeShell).Assembly.GetName().Version?.ToString(), syntheticOnly=true });
app.Run();