(
State(state): State<AppState>,
Path(udid): Path<String>,
Json(payload): Json<InstallPayload>,
)
| 2232 | } |
| 2233 | |
| 2234 | async fn install_app( |
| 2235 | State(state): State<AppState>, |
| 2236 | Path(udid): Path<String>, |
| 2237 | Json(payload): Json<InstallPayload>, |
| 2238 | ) -> Result<Json<Value>, AppError> { |
| 2239 | if payload.app_path.trim().is_empty() { |
| 2240 | return Err(AppError::bad_request( |
| 2241 | "Request body must include `appPath`.", |
| 2242 | )); |
| 2243 | } |
| 2244 | install_app_path(state, udid, payload.app_path).await?; |
| 2245 | Ok(json(json_value!({ "ok": true }))) |
| 2246 | } |
| 2247 | |
| 2248 | async fn upload_install_app( |
| 2249 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected