mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-22 23:57:31 +02:00
fix: json response in api to work with ios shortcuts
fix corrected lockfile
This commit is contained in:
Generated
+1
-30
@@ -3178,16 +3178,13 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "main"
|
name = "main"
|
||||||
version = "0.1.4"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"api-router",
|
"api-router",
|
||||||
"async-openai",
|
"async-openai",
|
||||||
"axum",
|
"axum",
|
||||||
"axum_session",
|
|
||||||
"axum_session_surreal",
|
|
||||||
"common",
|
"common",
|
||||||
"cookie",
|
|
||||||
"futures",
|
"futures",
|
||||||
"headless_chrome",
|
"headless_chrome",
|
||||||
"html-router",
|
"html-router",
|
||||||
@@ -3195,7 +3192,6 @@ dependencies = [
|
|||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serial_test",
|
|
||||||
"surrealdb",
|
"surrealdb",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"thiserror 1.0.69",
|
"thiserror 1.0.69",
|
||||||
@@ -5053,31 +5049,6 @@ dependencies = [
|
|||||||
"syn 2.0.101",
|
"syn 2.0.101",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "serial_test"
|
|
||||||
version = "2.0.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0e56dd856803e253c8f298af3f4d7eb0ae5e23a737252cd90bb4f3b435033b2d"
|
|
||||||
dependencies = [
|
|
||||||
"dashmap 5.5.3",
|
|
||||||
"futures",
|
|
||||||
"lazy_static",
|
|
||||||
"log",
|
|
||||||
"parking_lot",
|
|
||||||
"serial_test_derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "serial_test_derive"
|
|
||||||
version = "2.0.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 2.0.101",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "servo_arc"
|
name = "servo_arc"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use axum::{extract::State, http::StatusCode, response::IntoResponse, Extension};
|
use axum::{extract::State, http::StatusCode, response::IntoResponse, Extension, Json};
|
||||||
use axum_typed_multipart::{FieldData, TryFromMultipart, TypedMultipart};
|
use axum_typed_multipart::{FieldData, TryFromMultipart, TypedMultipart};
|
||||||
use common::{
|
use common::{
|
||||||
error::AppError,
|
error::AppError,
|
||||||
@@ -8,6 +8,7 @@ use common::{
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
use futures::{future::try_join_all, TryFutureExt};
|
use futures::{future::try_join_all, TryFutureExt};
|
||||||
|
use serde_json::json;
|
||||||
use tempfile::NamedTempFile;
|
use tempfile::NamedTempFile;
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
|
|
||||||
@@ -52,5 +53,5 @@ pub async fn ingest_data(
|
|||||||
|
|
||||||
try_join_all(futures).await?;
|
try_join_all(futures).await?;
|
||||||
|
|
||||||
Ok(StatusCode::OK)
|
Ok((StatusCode::OK, Json(json!({ "status": "success" }))))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user