mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-02 00:00:22 +02:00
update examples
This commit is contained in:
@@ -25,7 +25,7 @@ async fn main() {
|
||||
.with(tracing_subscriber::fmt::layer())
|
||||
.init();
|
||||
|
||||
let app = Router::new()
|
||||
let app = Router::without_state()
|
||||
.route("/", post(|| async move { "Hello from `POST /`" }))
|
||||
.layer(middleware::from_fn(print_request_response));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user