projet-nuitinfo-2024/back/src/main.rs
2024-12-05 16:58:13 +00:00

14 lines
300 B
Rust

use actix_web::{App, HttpServer};
use actix_files::Files;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.service(Files::new("/", "./public").index_file("index.html"))
})
.bind(("0.0.0.0", 8080))?
.run()
.await
}