struct
Routes
pub struct Routes {
pub routes: &'static [Route],
pub template: &'static str,
pub mode: Mode,
pub base: &'static str,
}An app's routes, as generated from app/.
Fields
base
pub base: &'static strWhere the app is served (/, /blog/): its patterns start with it, and its files are there.
Methods
href
pub fn href(&self, path: &str) -> Stringpath under the app's base: /tag/rust/ → /blog/tag/rust/.