pub fn normalize_romm_origin(url: &str) -> StringExpand description
RomM site URL: the same origin you use in the browser (scheme, host, optional port).
Trims whitespace and trailing /, and removes a trailing /api segment if present. HTTP
calls use paths such as /api/platforms; they must not double up with .../api/api/....