mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 07:48:39 +01:00
df612fdc72
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
9 lines
250 B
Rust
9 lines
250 B
Rust
use axum::{debug_middleware, extract::Request, middleware::Next, response::Response};
|
|
|
|
#[debug_middleware]
|
|
async fn my_middleware(request: Request, next: Next, next2: Next) -> Response {
|
|
let _ = next2;
|
|
next.run(request).await
|
|
}
|
|
|
|
fn main() {}
|