(Path(id): Path<i32>, State(ctx): State<AppContext>)
| 61 | |
| 62 | #[debug_handler] |
| 63 | pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> { |
| 64 | format::json(load_item(&ctx, id).await?) |
| 65 | } |
| 66 | |
| 67 | pub fn routes() -> Routes { |
| 68 | Routes::new() |