(w http.ResponseWriter, r *http.Request)
| 210 | } |
| 211 | |
| 212 | func (h *NodeHandler) handleGetConfig(w http.ResponseWriter, r *http.Request) { |
| 213 | cfg, err := h.loadConfig() |
| 214 | if err != nil { |
| 215 | writeNodeJSON(w, http.StatusInternalServerError, map[string]any{"error": err.Error()}) |
| 216 | return |
| 217 | } |
| 218 | writeNodeJSON(w, http.StatusOK, cfg) |
| 219 | } |
| 220 | |
| 221 | func (h *NodeHandler) handleSetConfig(w http.ResponseWriter, r *http.Request) { |
| 222 | var cfg Config |
nothing calls this directly
no test coverage detected