initial commit
This commit is contained in:
15
internal/template/routes.go
Normal file
15
internal/template/routes.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user