mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
19 lines
422 B
TypeScript
19 lines
422 B
TypeScript
import { http } from './http'
|
|
import type { StatusResponse } from '../types/proxy'
|
|
|
|
export const getStatus = () => {
|
|
return http.get<StatusResponse>('/api/status')
|
|
}
|
|
|
|
export const getConfig = () => {
|
|
return http.get<string>('/api/config')
|
|
}
|
|
|
|
export const putConfig = (content: string) => {
|
|
return http.put<void>('/api/config', content)
|
|
}
|
|
|
|
export const reloadConfig = () => {
|
|
return http.get<void>('/api/reload')
|
|
}
|