mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 12:23:35 +08:00
feat: apache
This commit is contained in:
14
web/src/api/apps/apache/index.ts
Normal file
14
web/src/api/apps/apache/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { http } from '@/utils'
|
||||
|
||||
export default {
|
||||
// 负载状态
|
||||
load: (): any => http.Get('/apps/apache/load'),
|
||||
// 获取配置
|
||||
config: (): any => http.Get('/apps/apache/config'),
|
||||
// 保存配置
|
||||
saveConfig: (config: string): any => http.Post('/apps/apache/config', { config }),
|
||||
// 获取错误日志
|
||||
errorLog: (): any => http.Get('/apps/apache/error_log'),
|
||||
// 清空错误日志
|
||||
clearErrorLog: (): any => http.Post('/apps/apache/clear_error_log')
|
||||
}
|
||||
Reference in New Issue
Block a user