Skip to content

Commit

Permalink
chore: send platform info in knowledge response (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Feb 20, 2025
1 parent a918512 commit eeb11de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/src/logic/knowledge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ use super::{read_without_key, HookExt, PublicExt, RequestExt};
use crate::server::{AppState, AppStores};
use axum::{routing::get, Router};
use bson::doc;
use entities::{record_metadata::RecordMetadata, Id, MongoStore};
use entities::{
connection_model_definition::PlatformInfo, record_metadata::RecordMetadata, Id, MongoStore,
};
use fake::Dummy;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
Expand All @@ -23,6 +25,9 @@ pub struct Knowledge {
pub path: String,
pub knowledge: Option<String>,
#[serde(flatten)]
pub platform_info: PlatformInfo,
pub base_url: Option<String>,
#[serde(flatten)]
pub metadata: RecordMetadata,
}

Expand Down

0 comments on commit eeb11de

Please sign in to comment.