mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-13 03:15:48 +02:00
[frontend-next] Refactored configs, terminal
This commit is contained in:
parent
3b49053525
commit
d2fb41fbdf
57 changed files with 1917 additions and 1224 deletions
13
frontend-next/src/api/ngx.ts
Normal file
13
frontend-next/src/api/ngx.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
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})
|
||||
}
|
||||
}
|
||||
|
||||
export default ngx
|
Loading…
Add table
Add a link
Reference in a new issue