Download src/services/configService.ts from AZILS/gemini: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/AZILS/gemini/resolve/main/src/services/configService.ts
- Command line
-
hf download hf://spaces/AZILS/gemini/src/services/configService.ts
-
curl -L -o configService.ts https://huggingface.co/spaces/AZILS/gemini/resolve/main/src/services/configService.ts
398 Bytes
| import { api } from './api'; | |
| import { AppConfig } from '../types/config'; | |
| /** | |
| * Load application configuration | |
| */ | |
| export async function loadConfig(): Promise<AppConfig> { | |
| return await api.get<AppConfig>('/api/config'); | |
| } | |
| /** | |
| * Save application configuration | |
| */ | |
| export async function saveConfig(config: AppConfig): Promise<void> { | |
| return await api.post<void>('/api/config', config); | |
| } | |