Fix path for files
This commit is contained in:
@ -289,6 +289,7 @@ async fn handle_get_collection(
|
|||||||
let mut path: PathBuf = PathBuf::new();
|
let mut path: PathBuf = PathBuf::new();
|
||||||
let static_data_dir: String = static_data_dir.into_inner().to_string();
|
let static_data_dir: String = static_data_dir.into_inner().to_string();
|
||||||
path.push(static_data_dir);
|
path.push(static_data_dir);
|
||||||
|
path.push("collections");
|
||||||
path.push(vendor_name.to_string());
|
path.push(vendor_name.to_string());
|
||||||
path.push(file_name.to_string());
|
path.push(file_name.to_string());
|
||||||
match NamedFile::open(path) {
|
match NamedFile::open(path) {
|
||||||
@ -310,6 +311,7 @@ async fn handle_list_scanners(
|
|||||||
if scanner_name.is_static() {
|
if scanner_name.is_static() {
|
||||||
let mut path: PathBuf = PathBuf::new();
|
let mut path: PathBuf = PathBuf::new();
|
||||||
path.push(static_data_dir);
|
path.push(static_data_dir);
|
||||||
|
path.push("scanners");
|
||||||
path.push(scanner_name.to_string());
|
path.push(scanner_name.to_string());
|
||||||
|
|
||||||
return match NamedFile::open(path) {
|
return match NamedFile::open(path) {
|
||||||
|
Reference in New Issue
Block a user