mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-15 03:05:51 +01:00
df612fdc72
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
13 lines
235 B
Rust
13 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() {}
|