This commit is contained in:
2026-10-01 21:10:08 +02:00
parent c65f36dc40
commit 679a8a0a3e
9 changed files with 275 additions and 14 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
)
func main() {
log.Println("Starting XCPQ Editor Service")
log.Println("Starting SimplyCPQ Editor Services")
log.Println("Reading configuration")
config := config.InitConfig("config")
log.Println("Initializing database")
@@ -19,5 +19,5 @@ func main() {
httpServer := server.InitHttpServer(config, dbHandler)
httpServer.Start()
log.Println("XCPQ Editor Service Stopped")
log.Println("SimplyCPQ Editor Services Stopped")
}
+1 -1
View File
@@ -56,7 +56,7 @@ func InitHttpServer(config *viper.Viper, dbHandler *sql.DB) HttpServer {
// static content
router.Static("/static", "../static")
router.GET("/", mainHandler.Home)
router.GET("/properties/rootnodes", propertyTypeHandler.GetRootPropertyTypeGroups)
router.GET("/properties/:id/childs", propertyTypeHandler.GetPropertyTypeGroupContentById)
//router.GET("/properties", handler.PropertiesHandler)
/* old routes