pub fn normalize_romm_origin(url: &str) -> StringExpand description
Normalizes a RomM site URL by trimming whitespace, trailing slashes, and removing the /api suffix.
ยงExamples
assert_eq!(normalize_romm_origin("http://localhost:8080/api/"), "http://localhost:8080");
assert_eq!(normalize_romm_origin(" https://romm.example.com "), "https://romm.example.com");