diff --git a/internal/cli/client.go b/internal/cli/client.go index 2b63a48..0beb2a4 100644 --- a/internal/cli/client.go +++ b/internal/cli/client.go @@ -612,7 +612,7 @@ func (c *Client) CancelJob(id string) error { // GetStatus retrieves server health and summary stats. func (c *Client) GetStatus() error { - resp, err := c.do("GET", "/api/v1/health", nil, nil) + resp, err := c.do("GET", "/health", nil, nil) if err != nil { return err } diff --git a/internal/cli/client_test.go b/internal/cli/client_test.go index 2eb7855..4d04d13 100644 --- a/internal/cli/client_test.go +++ b/internal/cli/client_test.go @@ -293,7 +293,7 @@ func TestClient_GetStatus(t *testing.T) { w.Header().Set("Content-Type", "application/json") - if r.URL.Path == "/api/v1/health" { + if r.URL.Path == "/health" { json.NewEncoder(w).Encode(map[string]interface{}{ "status": "healthy", "timestamp": time.Now().Format(time.RFC3339),