axum::routing::method_routing

Function delete

Source
pub fn delete<H, T, S>(handler: H) -> MethodRouter<S, Infallible>
where H: Handler<T, S>, T: 'static, S: Clone + Send + Sync + 'static,
Expand description

Route DELETE requests to the given handler.

See get for an example.