pub fn checked_viewer_path(url: &str, public_url: &str) -> Option<String>Expand description
Checks a viewer URL from a tool result before anything shows it: it must
be this server’s 3D viewer page of a file – a relative /files/<uuid>/preview
or the same under public_url (same scheme, host and port). Returns the
relative path in canonical form; anything else (other hosts, //host,
queries, fragments, encodings, other pages) is None.