(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 2432 | } |
| 2433 | |
| 2434 | async fn get_pasteboard( |
| 2435 | State(state): State<AppState>, |
| 2436 | Path(udid): Path<String>, |
| 2437 | ) -> Result<Json<Value>, AppError> { |
| 2438 | if android::is_android_id(&udid) { |
| 2439 | let text = run_android_action(state, move |android| android.pasteboard_text(&udid)).await?; |
| 2440 | return Ok(json(json_value!({ "text": text }))); |
| 2441 | } |
| 2442 | let text = run_bridge_action(state, move |bridge| bridge.pasteboard_text(&udid)).await?; |
| 2443 | Ok(json(json_value!({ "text": text }))) |
| 2444 | } |
| 2445 | |
| 2446 | async fn set_pasteboard( |
| 2447 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected