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