aboutsummaryrefslogtreecommitdiff
path: root/backend/src/main.rs
blob: c75aaf661cd585bd19fc8f5cb0ba1a3c3b0c5e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));

    axum::Server::bind(&addr)
        .serve(app.into_make_service())
        .await
        .unwrap();
}