feat: added restart nginx btn

This commit is contained in:
0xJacky 2023-02-13 13:24:19 +08:00
parent d6b68b807f
commit c9c83c9db9
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
14 changed files with 209 additions and 49 deletions

View file

@ -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')
}