Skip to main content

ensure_api_token

Function ensure_api_token 

Source
pub fn ensure_api_token() -> Result<PathBuf>
Expand description

Ensure the REST API bearer token exists and return its path.

Call this before using crate::api::build_router directly. The remem api command calls it automatically.