* Save config to backend API * @param config GlobalConfig to save
(config: GlobalConfig)
| 27 | * @param config GlobalConfig to save |
| 28 | */ |
| 29 | async saveConfig(config: GlobalConfig): Promise<void> { |
| 30 | await fetchWithErrorHandling(API_ENDPOINTS.config.save, { |
| 31 | method: "POST", |
| 32 | headers: getAuthHeaders(), |
| 33 | body: JSON.stringify(config), |
| 34 | }); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Export singleton instance |
no test coverage detected