Skip to main content

Crate mnemo_rest

Crate mnemo_rest 

Source

Modules§

handlers

Functions§

router
Construct the full Axum router for the Mnemo REST API, reading the bearer-token secret from the MNEMO_AUTH_TOKEN environment variable.
router_with_auth
Like router but with the bearer secret passed explicitly (so tests and embedders can configure auth without touching the process environment). Some(token) enables bearer auth; None runs open (with a warning).