Add AI provider status endpoint
All checks were successful
CI / test (push) Successful in 12s
Build and Deploy / build-and-deploy (push) Successful in 21s

This commit is contained in:
Grendgi
2026-06-08 13:45:55 +03:00
parent 0da278a45e
commit 12db90dc3b
4 changed files with 177 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
s.handleFailJob(w, r, path)
case r.Method == http.MethodGet && path == "/api/v1/stats":
s.handleStats(w, r)
case r.Method == http.MethodGet && path == "/api/v1/providers/status":
s.handleProviderStatus(w, r)
default:
writeError(w, http.StatusNotFound, "not found")
}