nginx_ui/nginx-ui-dev/api/template/router.go

12 lines
348 B
Go
Raw Normal View History

2025-03-04 19:28:12 +08:00
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)
}