axum/axum-macros/tests/debug_middleware/fail/next_not_last.rs
Yann Simon df612fdc72
Add #[debug_middleware] (#2725)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2024-05-02 17:27:12 -04:00

13 lines
237 B
Rust

use axum::{
extract::Request,
response::Response,
middleware::Next,
debug_middleware,
};
#[debug_middleware]
async fn my_middleware(next: Next, request: Request) -> Response {
next.run(request).await
}
fn main() {}