2026-05-21 23:54:52 +08:00
|
|
|
import { fetchAPI, type SystemConfig, type SystemHealth, type SystemStats } from './index';
|
2026-05-14 15:07:34 +08:00
|
|
|
|
|
|
|
|
export async function getSystemStats(): Promise<SystemStats> {
|
|
|
|
|
return fetchAPI<SystemStats>('/status/stats');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getSystemConfig(): Promise<SystemConfig> {
|
|
|
|
|
return fetchAPI<SystemConfig>('/status/config');
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-21 23:54:52 +08:00
|
|
|
export async function getSystemHealth(): Promise<SystemHealth> {
|
|
|
|
|
return fetchAPI<SystemHealth>('/status/health');
|
2026-05-14 15:07:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-05-21 23:54:52 +08:00
|
|
|
export type { SystemConfig, SystemHealth, SystemStats };
|