Lead gateway overview with readable fault context
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user