summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main.rs b/src/main.rs
deleted file mode 100644
index 34783ac..0000000
--- a/src/main.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-mod routes;
-mod rooms;
-mod room;
-
-#[tokio::main]
-async fn main() {
- let port = std::env::var("PORT")
- .unwrap_or("8080".to_owned())
- .parse::<u16>()
- .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");
-}