()
| 2 | |
| 3 | export const apiKeysApi = { |
| 4 | async status(): Promise<Record<string, boolean>> { |
| 5 | const res = await fetch('/api/config/api-keys/status') |
| 6 | if (!res.ok) throw new Error('Failed to load API key status') |
| 7 | return res.json() |
| 8 | }, |
| 9 | |
| 10 | async save(keys: Record<string, string>): Promise<void> { |
| 11 | const res = await fetch('/api/config/apiKeys', { |