Download frontend/src/api/logs.ts from JianKaa/gm-2api: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/logs.ts
- Command line
-
hf download hf://spaces/JianKaa/gm-2api/frontend/src/api/logs.ts
-
curl -L -o logs.ts https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/logs.ts
359 Bytes
| import apiClient from './client' | |
| import type { AdminLogsResponse } from '@/types/api' | |
| export const logsApi = { | |
| // 获取日志 | |
| list: (params?: { limit?: number; level?: string; search?: string }) => | |
| apiClient.get<never, AdminLogsResponse>('/admin/log', { params }), | |
| // 清空日志 | |
| clear: () => | |
| apiClient.delete('/admin/log?confirm=yes'), | |
| } | |