Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

344 B
Raw Blame
pub const PRODUCTION_API_ORIGIN: &str = "https://api.ente.com";

// `origin` must be an origin. Preserving path prefixes is a best-effort
// convenience for self-hosters.
pub(crate) fn api_url(origin: &str, path: &str) -> String {
    format!(
        "{}/{}",
        origin.trim_end_matches('/'),
        path.trim_start_matches('/')
    )
}