aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-13 15:26:05 +0200
committerfx <[email protected]>2023-10-13 15:26:05 +0200
commit25885b8e08252db20f2a50e64184b6a59e546a73 (patch)
tree65b0f8b2574d6e0ae044973b09be80da6ff8294f /src/main.rs
parentf985e3c21d3241fa0fa0e231ed700c6bec163a6e (diff)
downloadwebol-25885b8e08252db20f2a50e64184b6a59e546a73.tar
webol-25885b8e08252db20f2a50e64184b6a59e546a73.tar.gz
webol-25885b8e08252db20f2a50e64184b6a59e546a73.zip
stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index bb37dc2..e6c746c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -51,7 +51,7 @@ async fn main() {
51 .route("/device", post(post_device)) 51 .route("/device", post(post_device))
52 .with_state(shared_state); 52 .with_state(shared_state);
53 53
54 // run it with hyper on localhost:3000 54 // TODO: Add to config
55 axum::Server::bind(&"0.0.0.0:3000".parse().unwrap()) 55 axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
56 .serve(app.into_make_service()) 56 .serve(app.into_make_service())
57 .await 57 .await
@@ -76,4 +76,4 @@ async fn init_db_pool() -> PgPool {
76 info!("dbPool successfully connected to '{}'", db_url); 76 info!("dbPool successfully connected to '{}'", db_url);
77 77
78 pool 78 pool
79} \ No newline at end of file 79}