(w http.ResponseWriter, r *http.Request)
| 282 | type defaultHandler struct{} |
| 283 | |
| 284 | func (handler *defaultHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 285 | http.Error(w, "{\"error\":true,\"message\":\"invalid request type\",\"result\":{}}", http.StatusNotFound) |
| 286 | } |
| 287 | |
| 288 | func (hc *Coordinator) handleAdmin(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { |
| 289 | // Add CORS header, if configured |