Skip to main content

handle_agent_remote_op

Function handle_agent_remote_op 

Source
pub(crate) async fn handle_agent_remote_op(
    __arg0: State<AppState>,
    who: Option<Extension<Caller>>,
    __arg2: Json<RemoteOpRequest>,
) -> Response
Expand description

POST /api/v1/agent/remote/op: backs the host argument of the MuxAPI tools. The agent is the one its token proves; the body’s word is only checked against it.