sero/src/main.rs

16 lines
334 B
Rust
Raw Normal View History

use std::net::SocketAddr;
2023-10-25 17:08:11 +02:00
use sero::{config, prepare};
2023-11-10 21:00:04 +01:00
#[tokio::main]
async fn main() {
let app = prepare().await;
2023-11-10 21:00:04 +01:00
let config = config::Config::default();
let addr = SocketAddr::from(([0, 0, 0, 0], config.port));
2023-10-25 17:08:11 +02:00
axum::Server::bind(&addr)
.serve(app.into_make_service())
2023-10-25 17:08:11 +02:00
.await
.unwrap();
}