summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-16 20:38:55 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-16 20:38:55 -0400
commit44334fc3852eb832280a335f72e6416c93a9f19f (patch)
tree4a97b6064a97c4ad58c07d89050ad8a11e7a4f70 /src/main.rs
parentbetter map bg renderer (diff)
downloadtuxman-44334fc3852eb832280a335f72e6416c93a9f19f.tar.gz
tuxman-44334fc3852eb832280a335f72e6416c93a9f19f.tar.bz2
tuxman-44334fc3852eb832280a335f72e6416c93a9f19f.zip
ts
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");
-}