mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
enhance: update gonginx and cosy to latest version
This commit is contained in:
parent
af9395ad69
commit
85da74b3f0
39 changed files with 799 additions and 662 deletions
|
@ -38,9 +38,15 @@ func GetTemplate(c *gin.Context) {
|
|||
},
|
||||
}
|
||||
|
||||
content, err := ngxConfig.BuildConfig()
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"message": "ok",
|
||||
"template": ngxConfig.BuildConfig(),
|
||||
"template": content,
|
||||
"tokenized": ngxConfig,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue