pub fn check_path(path: &str) -> Result<(), &'static str>
Checks a path: segments with the id syntax, separated by /.
/