mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
11 lines
348 B
Go
11 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)
|
|
}
|