import { api } from './client'

export async function fetchProxyConfig() {
  const { data } = await api.get('/proxy/config')
  return data
}

export async function updateProxyConfig(payload) {
  const { data } = await api.post('/proxy/config', payload)
  return data
}

export async function testProxy(payload) {
  const { data } = await api.post('/proxy/test', payload)
  return data
}

