GET /v1/sort
(w http.ResponseWriter, r *http.Request)
| 118 | |
| 119 | // GET /v1/sort |
| 120 | func ProxyGetHandler(w http.ResponseWriter, r *http.Request) { |
| 121 | if !checkHTTPMethod(w, r, http.MethodGet) { |
| 122 | return |
| 123 | } |
| 124 | |
| 125 | query := r.URL.Query() |
| 126 | managerUUID := query.Get(apc.QparamUUID) |
| 127 | |
| 128 | if managerUUID == "" { |
| 129 | proxyListSortHandler(w, r) |
| 130 | return |
| 131 | } |
| 132 | |
| 133 | proxyMetricsSortHandler(w, r) |
| 134 | } |
| 135 | |
| 136 | // GET /v1/sort?regex=... |
| 137 | func proxyListSortHandler(w http.ResponseWriter, r *http.Request) { |
no test coverage detected