mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-15 11:15:51 +01:00
14 lines
235 B
Rust
14 lines
235 B
Rust
|
use axum::{
|
||
|
debug_middleware,
|
||
|
extract::Request,
|
||
|
response::{IntoResponse, Response},
|
||
|
};
|
||
|
|
||
|
#[debug_middleware]
|
||
|
async fn my_middleware(request: Request) -> Response {
|
||
|
let _ = request;
|
||
|
().into_response()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|