MCPcopy Create free account
hub / github.com/YougLin-dev/amp-server / internal

Function internal

api/src/user/mod.rs:90–102  ·  view source on GitHub ↗
(Json(request): Json<InternalRequest>)

Source from the content-addressed store, hash-verified

88}
89
90async fn internal(Json(request): Json<InternalRequest>) -> Json<serde_json::Value> {
91 match request.method.as_str() {
92 "uploadThread" => {
93 let thread_data = &request.params.thread;
94 debug!("Received thread upload request: ID={}, Title={}, Message count={}", thread_data.id, thread_data.title, thread_data.messages.len());
95
96 Json(json!({"ok": true}))
97 }
98 _ => {
99 Json(json!({"ok": true}))
100 }
101 }
102}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected