1
0
mirror of https://github.com/actix/actix-website synced 2025-03-20 22:55:17 +01:00
2019-06-26 04:27:25 -04:00

15 lines
287 B
Rust

// <directory>
use actix_files as fs;
use actix_web::{App, HttpServer};
pub fn main() {
HttpServer::new(|| {
App::new().service(fs::Files::new("/static", ".").show_files_listing())
})
.bind("127.0.0.1:8088")
.unwrap()
.run()
.unwrap();
}
// </directory>