Function
read_text_field
(
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 | |
| 591 | async fn download_mod(State(state): State<AppState>, Path(mod_id): Path<String>) -> Response { |
| 592 | match state.service.mod_artifact_signed_url(&mod_id).await { |
Tested by
no test coverage detected