planetwars.dev/backend/src/main.rs

17 lines
320 B
Rust
Raw Normal View History

2021-12-29 16:11:27 +01:00
use std::net::SocketAddr;
2021-12-14 20:23:07 +01:00
extern crate mozaic4_backend;
2021-12-29 16:11:27 +01:00
extern crate tokio;
#[tokio::main]
async fn main() {
let app = mozaic4_backend::app().await;
let addr = SocketAddr::from(([127, 0, 0, 1], 9000));
2021-12-13 15:43:47 +01:00
2021-12-29 16:11:27 +01:00
axum::Server::bind(&addr)
.serve(app.into_make_service())
.await
.unwrap();
2021-12-13 15:43:47 +01:00
}