mod routes; mod rooms; mod room; #[tokio::main] async fn main() { let port = std::env::var("PORT") .unwrap_or("8080".to_owned()) .parse::() .unwrap_or(8080); axum::Server::bind(&std::net::SocketAddr::new( std::net::IpAddr::V6(std::net::Ipv6Addr::from(0)), port )) .serve( routes::routes() .into_make_service() ) .await .expect("Error running the web server"); }