(config: Partial<Config>)
| 14 | } |
| 15 | |
| 16 | export async function updateConfig(config: Partial<Config>): Promise<{ |
| 17 | success: boolean |
| 18 | message?: string |
| 19 | error?: AppError | string |
| 20 | error_message?: string |
| 21 | }> { |
| 22 | const response = await axios.post(`${API_BASE_URL}/config`, config) |
| 23 | return response.data |
| 24 | } |
| 25 | |
| 26 | export async function testConnection(config: { |
| 27 | type: string |