aboutsummaryrefslogtreecommitdiff
path: root/backend/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/main.rs')
-rw-r--r--backend/src/main.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/backend/src/main.rs b/backend/src/main.rs
index 3c0efa8..c75aaf6 100644
--- a/backend/src/main.rs
+++ b/backend/src/main.rs
@@ -1,8 +1,16 @@
-#[macro_use]
-extern crate rocket;
+use std::net::SocketAddr;
+
extern crate mozaic4_backend;
+extern crate tokio;
+
+#[tokio::main]
+async fn main() {
+ let app = mozaic4_backend::app().await;
+
+ let addr = SocketAddr::from(([127, 0, 0, 1], 9000));
-#[launch]
-fn launch() -> rocket::Rocket<rocket::Build> {
- mozaic4_backend::rocket()
+ axum::Server::bind(&addr)
+ .serve(app.into_make_service())
+ .await
+ .unwrap();
}