Skip to main content

resolve_openapi_root

Function resolve_openapi_root 

Source
pub fn resolve_openapi_root(api_base_url: &str) -> String
Expand description

Origin used to fetch /openapi.json (same as the RomM website). Normally equals normalize_romm_origin applied to API_BASE_URL.

Set ROMM_OPENAPI_BASE_URL only when that origin differs (wrong host in API_BASE_URL, split DNS, etc.).