Add AI provider status endpoint
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user