Skip to main content

static_files

Function static_files 

Source
pub fn static_files<S: Clone + Send + Sync + 'static>(dir: &str) -> Router<S>
Expand description

Serves dir at /static/<build id>/ and, for pages cached before a deploy, at the bare /static/.