DC in local network

This commit is contained in:
Eden Kirin
2024-01-23 21:40:57 +01:00
parent 3d6e4e6f34
commit 0a344ed1ce
6 changed files with 1537 additions and 312 deletions

View File

@ -39,6 +39,10 @@ func handleGetProducts(dbConn *gorm.DB) gin.HandlerFunc {
products := db.GetProducts(dbConn, machineId)
// for i := 0; i < len(*products); i++ {
// (*products)[i].Name = fmt.Sprintf("[local] %s", (*products)[i].Name)
// }
c.JSON(
http.StatusOK,
GetProductsResponse{