mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-01 06:54:23 +00:00
Fixed the internal API path
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user