Serve static files with default

This commit is contained in:
Valentin Brandl 2019-07-29 18:20:31 +02:00
parent bd6bffeafb
commit 237eb52ff4
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -140,7 +140,7 @@ fn main() -> Result<()> {
web::get().to_async(handle_request::<GitLab>), web::get().to_async(handle_request::<GitLab>),
) )
.route("/gitlab/{file:.*}", web::delete().to_async(dbg::<GitLab>)) .route("/gitlab/{file:.*}", web::delete().to_async(dbg::<GitLab>))
.service(actix_files::Files::new("/", "public").index_file("index.html")) .service(actix_files::Files::new("/", "./public").index_file("index.html"))
}) })
.workers(OPT.workers) .workers(OPT.workers)
.bind((OPT.interface, OPT.port))? .bind((OPT.interface, OPT.port))?