mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-25 08:37:29 +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() {}
|