Skip to main content

accounts_url

Function accounts_url 

Source
pub fn accounts_url(api_base: &str) -> String
Expand description

Derive the human-facing account-tokens URL from an API base URL.

Strips a leading api. from the host (so api.taskfast.app → taskfast.app) and appends /account/tokens. Hosts without the api. prefix (localhost, bare domains, IPs) are passed through. Scheme and port are preserved.