You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
320 B
Go
12 lines
320 B
Go
package template
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func InitRouter(r *gin.RouterGroup) {
|
|
r.GET("template", GetTemplate)
|
|
r.GET("template/configs", GetTemplateConfList)
|
|
r.GET("template/blocks", GetTemplateBlockList)
|
|
r.GET("template/block/:name", GetTemplateBlock)
|
|
r.POST("template/block/:name", GetTemplateBlock)
|
|
}
|