(w http.ResponseWriter, r *http.Request)
| 262 | } |
| 263 | |
| 264 | func (b *WebBridge) handleStatus(w http.ResponseWriter, r *http.Request) { |
| 265 | agentID := r.URL.Query().Get("agent_id") |
| 266 | |
| 267 | resp, _ := b.handler(&FrontendMessage{ |
| 268 | ID: generateID(), |
| 269 | Type: MsgTypeGetStatus, |
| 270 | AgentID: agentID, |
| 271 | }) |
| 272 | |
| 273 | writeJSON(w, http.StatusOK, resp) |
| 274 | } |
| 275 | |
| 276 | func (b *WebBridge) handleHistory(w http.ResponseWriter, r *http.Request) { |
| 277 | agentID := r.URL.Query().Get("agent_id") |
nothing calls this directly
no test coverage detected