(Json(request): Json<InternalRequest>)
| 88 | } |
| 89 | |
| 90 | async 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected