Skip to main content

accounts_url

Function accounts_url 

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

Derive the human-facing Personal API Key URL from an API base URL.

Strips the api label from the host (so api.taskfast.app → taskfast.app) and links to /accounts#personal-api-key. Hosts without an api label (localhost, bare domains, IPs) are passed through. Scheme and port are preserved; existing path, query, and fragment are replaced.