general: fixes

This commit is contained in:
k
2024-09-19 21:03:50 +02:00
parent d2349741f7
commit 412769ff03
11 changed files with 40 additions and 21 deletions

View File

@@ -180,7 +180,7 @@ where
datasets.get(&ChunkId::from_usize(offseted)).map(|_| {
let scheme = headers.get_scheme();
let host = headers.get_host();
format!("{scheme}://{host}/{}?chunk={offseted}", route.url_path)
format!("{scheme}://{host}/api/{}?chunk={offseted}", route.url_path)
})
};

View File

@@ -133,7 +133,7 @@ impl Routes {
.map(|(key, route)| {
(
key.to_owned(),
format!("{url}/{}", route.url_path.to_owned()),
format!("{url}/api/{}", route.url_path.to_owned()),
)
})
.collect()