Saataa andagii !

This commit is contained in:
Lukian 2024-12-04 22:24:38 +01:00
commit 8ce5844c3b
23 changed files with 421 additions and 0 deletions

9
back/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "back"
version = "0.1.0"
edition = "2021"
[dependencies]
actix-files = "0.6.6"
actix-web = "4"

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
}