diff --git a/crates/ptth_server/src/file_server/internal.rs b/crates/ptth_server/src/file_server/internal.rs index c052a35..7a442b7 100644 --- a/crates/ptth_server/src/file_server/internal.rs +++ b/crates/ptth_server/src/file_server/internal.rs @@ -250,6 +250,31 @@ pub struct FileRoots <'a> { pub dirs: &'a BTreeMap , } +struct RoutedPath <'a> { + root: &'a Path, + path: std::borrow::Cow <'a, str>, +} + +impl <'a> FileRoots <'a> { + fn route (self, input: &'a str) -> Result