(w http.ResponseWriter, r *http.Request)
| 291 | } |
| 292 | |
| 293 | func (b *ElectronBridge) handleStatus(w http.ResponseWriter, r *http.Request) { |
| 294 | agentID := r.URL.Query().Get("agent_id") |
| 295 | |
| 296 | resp, _ := b.handler(&FrontendMessage{ |
| 297 | ID: generateID(), |
| 298 | Type: MsgTypeGetStatus, |
| 299 | AgentID: agentID, |
| 300 | }) |
| 301 | |
| 302 | writeJSON(w, http.StatusOK, resp) |
| 303 | } |
| 304 | |
| 305 | func (b *ElectronBridge) handleHistory(w http.ResponseWriter, r *http.Request) { |
| 306 | agentID := r.URL.Query().Get("agent_id") |
nothing calls this directly
no test coverage detected