From 237eb52ff4f66d640bcec3dc91ab6c98d2fe37ce Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 29 Jul 2019 18:20:31 +0200 Subject: [PATCH] Serve static files with default --- backend/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 82548ff..26f0a44 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -140,7 +140,7 @@ fn main() -> Result<()> { web::get().to_async(handle_request::), ) .route("/gitlab/{file:.*}", web::delete().to_async(dbg::)) - .service(actix_files::Files::new("/", "public").index_file("index.html")) + .service(actix_files::Files::new("/", "./public").index_file("index.html")) }) .workers(OPT.workers) .bind((OPT.interface, OPT.port))?