Modules§
Functions§
- router
- Construct the full Axum router for the Mnemo REST API, reading the
bearer-token secret from the
MNEMO_AUTH_TOKENenvironment variable. - router_
with_ auth - Like
routerbut with the bearer secret passed explicitly (so tests and embedders can configure auth without touching the process environment).Some(token)enables bearer auth;Noneruns open (with a warning).