From 5b86dccd645684335d349ace03095e8189b8fca1 Mon Sep 17 00:00:00 2001 From: Jack Nash Date: Wed, 17 Jul 2024 15:09:33 +1000 Subject: [PATCH] debug: move static folder to root dir --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9e1e06b..e7fdd3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ use actix_files as fs; use actix_web::{web, App, HttpServer}; - mod routes; mod templates; @@ -16,7 +15,7 @@ async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() - .service(fs::Files::new("/static", "./static").show_files_listing()) + .service(fs::Files::new("/static", ".").show_files_listing()) .service(routes::main::main) .default_service(web::route().to(routes::not_found::not_found)) })