You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfnmain(){// initialize tracing
tracing_subscriber::fmt::init();// build our application with a routelet app = Router::new()// `GET /` goes to `root`.route("/",get(root))// `POST /users` goes to `create_user`.route("/users",post(create_user));// run our app with hyper, listening globally on port 3000let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, app).await.unwrap();}
The text was updated successfully, but these errors were encountered:
https://github.com/tokio-rs/axum
The text was updated successfully, but these errors were encountered: