Skip to main content

delete

Attribute Macro delete 

Source
#[delete]
Expand description

Shorthand for #[orpc::route(method = "DELETE", path = "...")].

§Syntax

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