2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 08:07:17 +08:00

refactor: 重命名openresty为nginx

This commit is contained in:
耗子
2024-10-12 19:13:33 +08:00
parent 6072332e1a
commit 86e4cff989
19 changed files with 64 additions and 76 deletions

View File

@@ -4,14 +4,14 @@ import { request } from '@/utils'
export default {
// 负载状态
load: (): Promise<AxiosResponse<any>> => request.get('/apps/openresty/load'),
load: (): Promise<AxiosResponse<any>> => request.get('/apps/nginx/load'),
// 获取配置
config: (): Promise<AxiosResponse<any>> => request.get('/apps/openresty/config'),
config: (): Promise<AxiosResponse<any>> => request.get('/apps/nginx/config'),
// 保存配置
saveConfig: (config: string): Promise<AxiosResponse<any>> =>
request.post('/apps/openresty/config', { config }),
request.post('/apps/nginx/config', { config }),
// 获取错误日志
errorLog: (): Promise<AxiosResponse<any>> => request.get('/apps/openresty/errorLog'),
errorLog: (): Promise<AxiosResponse<any>> => request.get('/apps/nginx/errorLog'),
// 清空错误日志
clearErrorLog: (): Promise<AxiosResponse<any>> => request.post('/apps/openresty/clearErrorLog')
clearErrorLog: (): Promise<AxiosResponse<any>> => request.post('/apps/nginx/clearErrorLog')
}