Function
remove
(Path(id): Path<i32>, State(ctx): State<AppContext>)
Source from the content-addressed store, hash-verified
| 50 | } |
| 51 | |
| 52 | pub async fn remove(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> { |
| 53 | load_item(&ctx, id).await?.delete(&ctx.db).await?; |
| 54 | format::empty() |
| 55 | } |
| 56 | |
| 57 | pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> { |
| 58 | format::json(load_item(&ctx, id).await?) |
Callers
nothing calls this directly
Tested by
no test coverage detected