diff --git a/core/src/api/search/mod.rs b/core/src/api/search/mod.rs index 1f653a82c..0c78c8343 100644 --- a/core/src/api/search/mod.rs +++ b/core/src/api/search/mod.rs @@ -124,7 +124,7 @@ pub fn mount() -> AlphaRouter { }; let rules = chain_optional_iter( - [IndexerRule::from(no_os_protected())], + [], [(!with_hidden_files).then(|| IndexerRule::from(no_hidden()))], );