pub fn get_path_slice(path: &str) -> Vec<&str> {
    let path_slice: Vec<&str> = path.split('/').filter(|p| !p.is_empty()).collect();

    path_slice
}
Removes empty elements from a path, which is important due to double
slashes. This returns a vector of the path's components;
packages/perseus/src/server/mod.rs