pub mod configuration; pub mod configuration_two; pub mod directory; // use actix_files::NamedFile; use actix_web::{web, App, HttpRequest, HttpServer, Result}; use std::path::PathBuf; fn index(req: HttpRequest) -> Result { let path: PathBuf = req.match_info().query("filename").parse().unwrap(); Ok(NamedFile::open(path)?) } fn main() { HttpServer::new(|| App::new().route("/{filename:.*}", web::get().to(index))) .bind("127.0.0.1:8088") .unwrap() .run() .unwrap(); } //