mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
refactor: project directory structure
This commit is contained in:
parent
c1193a5b8c
commit
e5a5889931
367 changed files with 710 additions and 756 deletions
|
@ -1,33 +0,0 @@
|
|||
import http from '@/lib/http'
|
||||
|
||||
const ngx = {
|
||||
build_config(ngxConfig: any) {
|
||||
return http.post('/ngx/build_config', ngxConfig)
|
||||
},
|
||||
|
||||
tokenize_config(content: string) {
|
||||
return http.post('/ngx/tokenize_config', {content})
|
||||
},
|
||||
|
||||
format_code(content: string) {
|
||||
return http.post('/ngx/format_code', {content})
|
||||
},
|
||||
|
||||
status() {
|
||||
return http.get('/nginx/status')
|
||||
},
|
||||
|
||||
reload() {
|
||||
return http.post('/nginx/reload')
|
||||
},
|
||||
|
||||
restart() {
|
||||
return http.post('/nginx/restart')
|
||||
},
|
||||
|
||||
test() {
|
||||
return http.post('/nginx/test')
|
||||
}
|
||||
}
|
||||
|
||||
export default ngx
|
Loading…
Add table
Add a link
Reference in a new issue