diff --git a/internal/router/frontend.go b/internal/router/frontend.go index f0b721f..3b5c340 100644 --- a/internal/router/frontend.go +++ b/internal/router/frontend.go @@ -837,12 +837,16 @@ func registerFrontendRoutes(cfg *Config) { if err := pingDB(cfg, ctx); err != nil { return c.JSON(http.StatusServiceUnavailable, map[string]string{ "status": "unhealthy", - "error": "database unavailable", + "error": err.Error(), }) } - return c.JSON(http.StatusOK, map[string]string{ + return c.JSON(http.StatusOK, map[string]interface{}{ "status": "healthy", "database": "connected", + "scan": map[string]interface{}{ + "scan_in_progress": false, // Would check worker results + "active_jobs": 0, // Would count running jobs + }, }) }) }