Skip to main content

router

Function router 

Source
pub fn router<S>(deployment_dir: Option<PathBuf>) -> Router<S>
where S: Clone + Send + Sync + 'static,
Expand description

Mount the deployment well-known routes. Always registered; each handler 404s when no deployment directory is configured, so an OAuth instance that is not the deployment terminator answers exactly like one where the material is absent — no information about configuration leaks.