func()

in api.go [90:97]


func (h apiHandlers) getTopProducts(c *gin.Context) {
	products, err := getTopProducts(c.Request.Context(), h.db)
	if err != nil {
		c.AbortWithError(http.StatusInternalServerError, err)
		return
	}
	c.JSON(http.StatusOK, products)
}