Fix SSE route dependency and align architecture docs

This commit is contained in:
ash66
2026-05-18 16:32:42 +08:00
parent 86b9ac806a
commit 3f69cad404
149 changed files with 4786 additions and 5957 deletions
+2 -6
View File
@@ -1,19 +1,15 @@
import { fetchAPI, type SystemStats, type SystemConfig } from './index';
import { fetchAPI, type SystemConfig, type SystemStats } from './index';
// Get system statistics
export async function getSystemStats(): Promise<SystemStats> {
return fetchAPI<SystemStats>('/status/stats');
}
// Get system configuration
export async function getSystemConfig(): Promise<SystemConfig> {
return fetchAPI<SystemConfig>('/status/config');
}
// Get Milvus health status
export async function getMilvusHealth(): Promise<{ connected: boolean; collections: string[] }> {
return fetchAPI('/status/milvus/health');
}
// Export types
export type { SystemStats, SystemConfig };
export type { SystemConfig, SystemStats };