#[put]
Shorthand for #[orpc::route(method = "PUT", path = "...")].
#[orpc::route(method = "PUT", path = "...")]
#[orpc::put("/planet/{id}")] async fn update_planet( State(db): State<Db>, Json(input): Json<UpdateInput>, ) -> Result<Json<Planet>, AppError> { // ... }