import api from './client'; import type { ProxyConfig, ProxyTestResult, PlatformInfo } from './types'; export const proxyApi = { get: () => api.get('/proxy'), update: (data: ProxyConfig) => api.put('/proxy', data), test: () => api.post('/proxy/test'), testWhitelist: () => api.post('/proxy/whitelist/test'), getPlatforms: () => api.get('/proxy/platforms'), };