mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: add template in "site-add" cause nginx error #796
This commit is contained in:
parent
b9822be86d
commit
a9520c1169
4 changed files with 26 additions and 26 deletions
|
@ -3,7 +3,7 @@ package template
|
|||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func InitRouter(r *gin.RouterGroup) {
|
||||
r.GET("templates", GetTemplate)
|
||||
r.GET("default_site_template", GetDefaultSiteTemplate)
|
||||
r.GET("templates/configs", GetTemplateConfList)
|
||||
r.GET("templates/blocks", GetTemplateBlockList)
|
||||
r.GET("templates/block/:name", GetTemplateBlock)
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
func GetTemplate(c *gin.Context) {
|
||||
func GetDefaultSiteTemplate(c *gin.Context) {
|
||||
var ngxConfig *nginx.NgxConfig
|
||||
|
||||
ngxConfig = &nginx.NgxConfig{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue