(Path(id): Path<i32>, State(ctx): State<AppContext>)
| 55 | |
| 56 | #[debug_handler] |
| 57 | pub async fn remove(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> { |
| 58 | load_item(&ctx, id).await?.delete(&ctx.db).await?; |
| 59 | format::empty() |
| 60 | } |
| 61 | |
| 62 | #[debug_handler] |
| 63 | pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> { |