I start play with HealthCheck in .NET 8 and I added UI to my project. However I have issues with icons.
I'm not quite sure why I have got 404 for this file.
The configuration looks really simple:
services.AddHealthChecksUI()
.AddInMemoryStorage();
app.MapHealthChecks("/api/health", new HealthCheckOptions
{
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
app.MapHealthChecksUI(setup =>
{
setup.ApiPath = "/api/health";
});
Anyone know how to fix it?