(w http.ResponseWriter, r *http.Request)
| 24 | ) |
| 25 | |
| 26 | func 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 | |
| 36 | func GetAPI(w http.ResponseWriter, r *http.Request) { |
| 37 | apiName := mux.Vars(r)["apiName"] |
nothing calls this directly
no test coverage detected