Skip to content

feat: add send command POST endpoint#81

Merged
yeoleobun merged 4 commits intomiuda-ai:mainfrom
Object905:rest_cmd
Apr 2, 2026
Merged

feat: add send command POST endpoint#81
yeoleobun merged 4 commits intomiuda-ai:mainfrom
Object905:rest_cmd

Conversation

@Object905
Copy link
Copy Markdown
Contributor

Closes #80

Json(serde_json::json!({ "status": "killed", "id": id })).into_response()
} else {
Json(serde_json::json!({ "status": "not_found", "id": id })).into_response()
(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by

.route("/call/sip", get(sip_handler))
.route("/list", get(list_active_calls))
.route("/kill/{id}", get(kill_active_call));
.route("/kill/{id}", get(kill_active_call))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be POST too. But kept for compatibility.

@yeoleobun yeoleobun merged commit 80914e0 into miuda-ai:main Apr 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rest endpoint to send commands into ongoing call

2 participants