successData wraps response for Node/frontend compatibility.
(w http.ResponseWriter, data interface{})
| 24 | |
| 25 | // successData wraps response for Node/frontend compatibility. |
| 26 | func successData(w http.ResponseWriter, data interface{}) { |
| 27 | JSON(w, http.StatusOK, map[string]interface{}{"success": true, "data": data}) |
| 28 | } |
| 29 | |
| 30 | // List handles GET /alerts. |
| 31 | func (h *AlertsHandler) List(w http.ResponseWriter, r *http.Request) { |
no test coverage detected