MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / install_app

Function install_app

packages/server/src/api/routes.rs:2234–2246  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
    Json(payload): Json<InstallPayload>,
)

Source from the content-addressed store, hash-verified

2232}
2233
2234async 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
2248async fn upload_install_app(
2249 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 3

install_app_pathFunction · 0.85
jsonFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected