mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-30 11:46:36 +08:00
8 lines
262 B
TypeScript
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),
|
|
}
|