-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Line: 46
Lines 43 to 53 in 12cd562
| .route("/echoes", post(echoes::create)) | |
| .with_state(pool); | |
| // TODO: make configurable via dotenv like in real life | |
| let listener = tokio::net::TcpListener::bind("0.0.0.0:3000") | |
| .await | |
| .expect("failed to bind to 0.0.0.0:3000"); | |
| axum::serve(listener, app) | |
| .await | |
| .expect("failed axum::serve..."); |