mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
enable files listing
This commit is contained in:
@ -112,7 +112,7 @@ fn main() -> io::Result<()> {
|
||||
})
|
||||
})
|
||||
// static files
|
||||
.service(fs::StaticFiles::new("/static", "static").unwrap())
|
||||
.service(fs::StaticFiles::new("/static", "static").show_files_listing())
|
||||
// redirect
|
||||
.resource("/", |r| {
|
||||
r.route(web::get().to(|req: HttpRequest| {
|
||||
|
Reference in New Issue
Block a user