(w http.ResponseWriter, r *http.Request)
| 155 | } |
| 156 | |
| 157 | func (h *NodeHandler) handleDetect(w http.ResponseWriter, r *http.Request) { |
| 158 | result, err := Detect(r.Context()) |
| 159 | if err != nil { |
| 160 | writeNodeJSON(w, http.StatusInternalServerError, map[string]any{"error": err.Error()}) |
| 161 | return |
| 162 | } |
| 163 | writeNodeJSON(w, http.StatusOK, result) |
| 164 | } |
| 165 | |
| 166 | func (h *NodeHandler) handleDetectGoogle(w http.ResponseWriter, r *http.Request) { |
| 167 | cfg, err := h.loadConfig() |
nothing calls this directly
no test coverage detected