Skip to content

Commit

Permalink
debug: move static folder to root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonVirgo committed Jul 17, 2024
1 parent 55f7cd6 commit 5b86dcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use actix_files as fs;
use actix_web::{web, App, HttpServer};

mod routes;
mod templates;

Expand All @@ -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))
})
Expand Down

0 comments on commit 5b86dcc

Please sign in to comment.