#[delete]
Shorthand for #[orpc::route(method = "DELETE", path = "...")].
#[orpc::route(method = "DELETE", path = "...")]
#[orpc::delete("/planet/{id}")] async fn delete_planet( State(db): State<Db>, Json(input): Json<DeleteInput>, ) -> Result<Json<()>, AppError> { // ... }