mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
feat: added restart nginx btn
This commit is contained in:
parent
d6b68b807f
commit
c9c83c9db9
14 changed files with 209 additions and 49 deletions
|
@ -13,10 +13,18 @@ const ngx = {
|
|||
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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue