pub mod transactions; pub mod balance; pub mod chart; pub mod asset; mod util; use rocket::response::NamedFile; use std::path::{PathBuf, Path}; // allow always access to static files #[get("/static/")] pub fn static_handler(file: PathBuf) -> Option { NamedFile::open(Path::new("static/").join(file)).ok() }