mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-01 00:00:14 +02:00
update examples
This commit is contained in:
@@ -29,7 +29,7 @@ async fn main() {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let app = Router::new().route("/", get(handler));
|
||||
let app = Router::without_state().route("/", get(handler));
|
||||
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
|
||||
println!("listening on {}", addr);
|
||||
|
||||
Reference in New Issue
Block a user