router.go 325 B

1234567891011
  1. package template
  2. import "github.com/gin-gonic/gin"
  3. func InitRouter(r *gin.RouterGroup) {
  4. r.GET("templates", GetTemplate)
  5. r.GET("templates/configs", GetTemplateConfList)
  6. r.GET("templates/blocks", GetTemplateBlockList)
  7. r.GET("templates/block/:name", GetTemplateBlock)
  8. r.POST("templates/block/:name", GetTemplateBlock)
  9. }