MCPcopy
hub / github.com/cortexlabs/cortex / GetAPIs

Function GetAPIs

pkg/operator/endpoints/get.go:26–34  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

24)
25
26func GetAPIs(w http.ResponseWriter, r *http.Request) {
27 response, err := resources.GetAPIs()
28 if err != nil {
29 respondError(w, r, err)
30 return
31 }
32
33 respondJSON(w, r, response)
34}
35
36func GetAPI(w http.ResponseWriter, r *http.Request) {
37 apiName := mux.Vars(r)["apiName"]

Callers

nothing calls this directly

Calls 3

GetAPIsFunction · 0.92
respondErrorFunction · 0.85
respondJSONFunction · 0.70

Tested by

no test coverage detected