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