Skip to main content

router

Function router 

Source
pub fn router(tera: Arc<Tera>) -> Router
Expand description

Build the admin router. Mount with Router::merge in the host app’s main router.

Auth note: the returned router is unprotected — every host app should layer with_login_required on top (or equivalent reverse-proxy basic auth).

Persists a process-local secret at ./var/.rustango_cms_signing.key to sign password-reset URLs (so links stay valid across server restarts).