mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
feat: added format code to config editor
This commit is contained in:
parent
5cc9068f5f
commit
594c61a0ff
13 changed files with 230 additions and 22 deletions
|
@ -7,6 +7,10 @@ const ngx = {
|
|||
|
||||
tokenize_config(content: string) {
|
||||
return http.post('/ngx/tokenize_config', {content})
|
||||
},
|
||||
|
||||
format_code(content: string) {
|
||||
return http.post('/ngx/format_code', {content})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue