|
|
@ -11,7 +11,10 @@ func writeJSON(w http.ResponseWriter, a interface{}) {
|
|
|
|
http.Error(w, "500 Internal Server Error", http.StatusInternalServerError)
|
|
|
|
http.Error(w, "500 Internal Server Error", http.StatusInternalServerError)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
w.Write(bytes)
|
|
|
|
_, err = w.Write(bytes)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
http.Error(w, "500 Internal Server Error", http.StatusInternalServerError)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func allStatus(w http.ResponseWriter, req *http.Request) {
|
|
|
|
func allStatus(w http.ResponseWriter, req *http.Request) {
|
|
|
|