initial commit

This commit is contained in:
2024-11-12 00:31:10 +00:00
commit a7933f8b06
99 changed files with 6836 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package template
import (
"github.com/labstack/echo/v4"
)
func DefineRoutes(g *echo.Group) {
g.GET("/templates", fetchAllTemplates)
g.GET("/templates/:templateName", fetchTemplate)
g.POST("/templates/:templateName", createOrUpdateTemplate)
g.DELETE("/templates/:templateName", deleteTemplate)
g.GET("/templates/:templateName/:filePath", fetchTemplateFile)
g.POST("/templates/:templateName/:filePath", updateTemplateFile)
g.GET("/template-images", fetchAllTemplateImages)
}