Fixed the internal API path

This commit is contained in:
Thorsten Sommer 2025-04-01 19:51:19 +02:00
parent eb5b42c97c
commit 9776251d2f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -38,7 +38,7 @@ const ODT: &str = "odt";
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>; type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
type ChunkStream = Pin<Box<dyn Stream<Item = Result<Chunk>> + Send>>; type ChunkStream = Pin<Box<dyn Stream<Item = Result<Chunk>> + Send>>;
#[get("/system/file-data/extract?<path>")] #[get("/retrieval/fs/extract?<path>")]
pub async fn extract_data(path: String, mut end: Shutdown) -> EventStream![] { pub async fn extract_data(path: String, mut end: Shutdown) -> EventStream![] {
EventStream! { EventStream! {
let stream_result = stream_data(&path).await; let stream_result = stream_data(&path).await;