()
| 4 | import type { AppError } from '../utils/errors' |
| 5 | |
| 6 | export async function getConfig(): Promise<{ |
| 7 | success: boolean |
| 8 | config?: Config |
| 9 | error?: AppError | string |
| 10 | error_message?: string |
| 11 | }> { |
| 12 | const response = await axios.get(`${API_BASE_URL}/config`) |
| 13 | return response.data |
| 14 | } |
| 15 | |
| 16 | export async function updateConfig(config: Partial<Config>): Promise<{ |
| 17 | success: boolean |