generated from lucien/actix-react-template
Initial commit
This commit is contained in:
commit
e7dbe84ea5
23 changed files with 423 additions and 0 deletions
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