func()

in api.go [182:189]


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