refactor: templates api logic

This commit is contained in:
2024-11-29 23:52:19 +00:00
parent db03db3b83
commit ae8f62d77d
10 changed files with 561 additions and 428 deletions

View File

@@ -80,7 +80,7 @@ func main() {
g := apiServer.Group("/api")
workspace.DefineRoutes(g, services)
template.DefineRoutes(g)
template.DefineRoutes(g, services)
apiServer.HTTPErrorHandler = func(err error, c echo.Context) {
var he *echo.HTTPError