import http from '@/api'; import { File } from '../interface/file'; import { Nginx } from '../interface/nginx'; export const GetNginx = () => { return http.get(`/openresty`); }; export const GetNginxConfigByScope = (req: Nginx.NginxScopeReq) => { return http.post(`/openresty/scope`, req); }; export const UpdateNginxConfigByScope = (req: Nginx.NginxConfigReq) => { return http.post(`/openresty/update`, req); }; export const GetNginxStatus = () => { return http.get(`/openresty/status`); }; export const UpdateNginxConfigFile = (req: Nginx.NginxFileUpdate) => { return http.post(`/openresty/file`, req); };