Download frontend/src/api/stats.ts from nst1/gemini: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/nst1/gemini/resolve/main/frontend/src/api/stats.ts
- Command line
-
hf download hf://spaces/nst1/gemini/frontend/src/api/stats.ts
-
curl -L -o stats.ts https://huggingface.co/spaces/nst1/gemini/resolve/main/frontend/src/api/stats.ts
255 Bytes
| import apiClient from './client' | |
| import type { AdminStats } from '@/types/api' | |
| export const statsApi = { | |
| overview(timeRange: string = '24h') { | |
| return apiClient.get<AdminStats>('/admin/stats', { | |
| params: { time_range: timeRange } | |
| }) | |
| }, | |
| } | |