nginx_ui/nginx-ui-dev/api/template/router.go
2025-03-04 11:28:12 +00:00

12 lines
348 B
Go

package template
import "github.com/gin-gonic/gin"
func InitRouter(r *gin.RouterGroup) {
r.GET("default_site_template", GetDefaultSiteTemplate)
r.GET("templates/configs", GetTemplateConfList)
r.GET("templates/blocks", GetTemplateBlockList)
r.GET("templates/block/:name", GetTemplateBlock)
r.POST("templates/block/:name", GetTemplateBlock)
}