blob: 3dbc693d5efc69ced1ad456b32ac53dd6b84c42f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
pub mod transactions;
pub mod balance;
pub mod chart;
pub mod asset;
pub mod asset_risk_chart;
mod util;
use rocket::response::NamedFile;
use std::path::{PathBuf, Path};
// allow always access to static files
#[get("/static/<file..>")]
pub fn static_handler(file: PathBuf) -> Option<NamedFile> {
NamedFile::open(Path::new("static/").join(file)).ok()
}
|