bazzar/web/src/main.rs

15 lines
295 B
Rust
Raw Normal View History

2022-04-14 08:07:59 +02:00
mod actors;
mod logic;
mod model;
mod routes;
use actix_web::{App, HttpServer};
#[actix_web::main] // or #[tokio::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().configure(routes::configure))
.bind(("127.0.0.1", 8080))?
.run()
.await
}