Function axum::service::any[][src]

pub fn any<S, B>(svc: S) -> OnMethod<S, EmptyRouter<S::Error>, B> where
    S: Service<Request<B>> + Clone
Expand description

Route requests to the given service regardless of the HTTP method.

See get for an example.