use std::fs::File; use std::io; use std::path::{Path, PathBuf}; #[get("/", rank = 5)] fn all(path: PathBuf) -> io::Result { File::open(Path::new("static/").join(path)) }