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