diff options
Diffstat (limited to 'actix/src/main.rs')
-rw-r--r-- | actix/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actix/src/main.rs b/actix/src/main.rs index 51060ad..6368c76 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -2,6 +2,7 @@ extern crate clap; +use actix_files as fs; use actix_web::{get, App, HttpResponse, HttpServer, Responder}; @@ -17,6 +18,7 @@ async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() .service(index_handler) + .service(fs::Files::new("/static", "./static").show_files_listing()) }) .bind(format!("{}:{}", address, port))? .run() |