From fb9b0c67f54567fb7b59568034570ad6814e0da2 Mon Sep 17 00:00:00 2001 From: Trisha Date: Fri, 25 Mar 2022 16:14:22 -0500 Subject: [PATCH] :heavy_plus_sign: add multi-root --- .../ptth_server/src/file_server/internal.rs | 41 +++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/crates/ptth_server/src/file_server/internal.rs b/crates/ptth_server/src/file_server/internal.rs index bf99d11..bd2013c 100644 --- a/crates/ptth_server/src/file_server/internal.rs +++ b/crates/ptth_server/src/file_server/internal.rs @@ -257,21 +257,38 @@ struct RoutedPath <'a> { impl <'a> FileRoots <'a> { fn route (self, input: &'a str) -> Result