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