MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / read_text_field

Function read_text_field

mserver/MasterService/src/http.rs:582–589  ·  view source on GitHub ↗
(
    field: axum::extract::multipart::Field<'_>,
)

Source from the content-addressed store, hash-verified

580 .service
581 .delete_mod(&mod_id)
582 .await
583 .map_err(|error| internal_error(&error))?;
584 if deleted {
585 Ok(StatusCode::NO_CONTENT)
586 } else {
587 Err((StatusCode::NOT_FOUND, "mod not found".to_string()))
588 }
589}
590
591async fn download_mod(State(state): State<AppState>, Path(mod_id): Path<String>) -> Response {
592 match state.service.mod_artifact_signed_url(&mod_id).await {

Callers 1

publish_modFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected