import { http } from './http' import type { StatusResponse } from '../types/proxy' export const getStatus = () => { return http.get('/api/status') } export const getConfig = () => { return http.get('/api/config') } export const putConfig = (content: string) => { return http.put('/api/config', content) } export const reloadConfig = () => { return http.get('/api/reload') }