mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 15:49:16 +01:00
8 lines
218 B
Rust
8 lines
218 B
Rust
use axum::{debug_middleware, extract::Request, middleware::Next, response::Response};
|
|
|
|
#[debug_middleware]
|
|
async fn my_middleware(request: Request, next: Next) -> Response {
|
|
next.run(request).await
|
|
}
|
|
|
|
fn main() {}
|