Download frontend/src/api/settings.ts from JianKaa/gm-2api: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/settings.ts
- Command line
-
hf download hf://spaces/JianKaa/gm-2api/frontend/src/api/settings.ts
-
curl -L -o settings.ts https://huggingface.co/spaces/JianKaa/gm-2api/resolve/main/frontend/src/api/settings.ts
296 Bytes
| import apiClient from './client' | |
| import type { Settings } from '@/types/api' | |
| export const settingsApi = { | |
| // 获取设置 | |
| get: () => | |
| apiClient.get<never, Settings>('/admin/settings'), | |
| // 更新设置 | |
| update: (settings: Settings) => | |
| apiClient.put('/admin/settings', settings), | |
| } | |