* Fetch config from backend API * @returns Raw config data from backend
()
| 13 | * @returns Raw config data from backend |
| 14 | */ |
| 15 | async fetchConfig(): Promise<unknown> { |
| 16 | const response = await fetchWithErrorHandling(API_ENDPOINTS.config.load, { |
| 17 | method: "GET", |
| 18 | headers: getAuthHeaders(), |
| 19 | }); |
| 20 | |
| 21 | const result = await response.json(); |
| 22 | return result.config; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Save config to backend API |
no test coverage detected