ling-web
↓ 986 downloadsSessions, flash, templates, CSRF, static files — Flask-style
Keywords web, flask, sessions, csrf, templates
lingfu install ling-webCode / Files (15)
src/blueprint.rs
use axum::Router;
/// Groups routes under a URL prefix — Flask's `Blueprint`, minus the
/// registration ceremony: it's a named wrapper over `Router::nest`.
pub fn blueprint<S>(prefix: &str, routes: Router<S>) -> Router<S>
where
S: Clone + Send + Sync + 'static,
{
Router::new().nest(prefix, routes)
}