Initial commit

This commit is contained in:
RedCrab 2024-12-05 16:58:13 +00:00
commit e7dbe84ea5
23 changed files with 423 additions and 0 deletions

14
back/src/main.rs Normal file
View file

@ -0,0 +1,14 @@
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
}