Saataa andagii !
This commit is contained in:
commit
8ce5844c3b
23 changed files with 421 additions and 0 deletions
9
back/Cargo.toml
Normal file
9
back/Cargo.toml
Normal 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
14
back/src/main.rs
Normal 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
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue