in api.go [81:88]
func (h apiHandlers) getProducts(c *gin.Context) { products, err := getProducts(c.Request.Context(), h.db) if err != nil { c.AbortWithError(http.StatusInternalServerError, err) return } c.JSON(http.StatusOK, products) }