Produktmanagement hinzugefügt und kleinere Bug behoben
This commit is contained in:
@@ -85,6 +85,7 @@ func InitHttpServer(config *viper.Viper, dbHandler *sql.DB) HttpServer {
|
||||
router.DELETE("/deleteProduct/:id", productController.DeleteProduct) // delete Product
|
||||
router.GET("/getProduct/:id", productController.GetProduct) // get Product by id
|
||||
router.GET("/getProductsByGroupId/:groupId", productController.GetProductsByGroupId) // get all Products by group ID
|
||||
router.GET("/getPropertiesFromProductId/:productId", productController.GetPropertiesFromProductId) // get Properties from ProductGroup by ID
|
||||
router.POST("/addPropertyToProductId/:productId", productController.AddPropertyToProductId) // add Property to Product by ID
|
||||
router.DELETE("/deletePropertyFromProductId/:productId", productController.DeletePropertyFromProductId) // delete Property from Product by ID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user