mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-25 16:47:34 +01:00
14 lines
237 B
Rust
14 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() {}
|