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:
@@ -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')
|
||||
}
|
||||
Reference in New Issue
Block a user