Files
MeBox/web/src/api/stats.ts
T
2026-05-28 20:10:19 +08:00

8 lines
262 B
TypeScript

import { api } from './client'
import type { Hardware, StatsSnapshot } from '../types'
export const statsAPI = {
snapshot: () => api.get<StatsSnapshot>('/stats').then((r) => r.data),
monitor: () => api.get<Hardware>('/stats/monitor').then((r) => r.data),
}