apiGetEndpointConfig 获取端点配置
(w http.ResponseWriter, r *http.Request)
| 3487 | "interval": session.Interval, |
| 3488 | }) |
| 3489 | } |
| 3490 | |
| 3491 | func (h *Handler) apiPollBuilderIdAuth(w http.ResponseWriter, r *http.Request) { |
| 3492 | var req struct { |
| 3493 | SessionID string `json:"sessionId"` |
| 3494 | } |
| 3495 | if err := json.NewDecoder(r.Body).Decode(&req); err != nil { |
| 3496 | w.WriteHeader(400) |
| 3497 | json.NewEncoder(w).Encode(map[string]string{"error": "Invalid JSON"}) |
no test coverage detected