DC in local network

This commit is contained in:
Eden Kirin
2024-01-23 21:40:57 +01:00
parent b69f26027d
commit 7b213dd33a
7 changed files with 1537 additions and 313 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{