Download frontend/src/api/monitor.ts from JianKaa/gm-2api: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/monitor.ts
- Command line
-
hf download hf://spaces/JianKaa/gm-2api/frontend/src/api/monitor.ts
-
curl -L -o monitor.ts https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/monitor.ts
229 Bytes
| import apiClient from './client' | |
| import type { UptimeResponse } from '@/types/api' | |
| export const monitorApi = { | |
| uptime(days = 90) { | |
| return apiClient.get<never, UptimeResponse>('/public/uptime', { params: { days } }) | |
| }, | |
| } | |