|
|
@@ -2,7 +2,6 @@ package controller
|
|
|
|
|
|
import (
|
|
|
"kng_feed_api/model"
|
|
|
- "log"
|
|
|
"net/http"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
@@ -12,8 +11,6 @@ func LoadProductsInfo(context *gin.Context) {
|
|
|
var products model.ProductsArray
|
|
|
err := context.ShouldBindJSON(&products)
|
|
|
|
|
|
- log.Println(products)
|
|
|
-
|
|
|
if err != nil {
|
|
|
context.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
|
|
return
|