Skip to content

Commit

Permalink
Edit landing response
Browse files Browse the repository at this point in the history
  • Loading branch information
moslehazizi committed Dec 28, 2023
1 parent 0422d53 commit 9e5262c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/landing.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ func (server *Server) getLanding(c *gin.Context) {
return
}
responseServices = append(responseServices, services_for_category...)
// c.JSON(http.StatusOK, gin.H{
// fmt.Sprintf("Services for category number %d", arg.ServiceCategory): services_for_category})
}

arg_2 := db.ListSliderImagesParams{
Expand All @@ -55,13 +53,6 @@ func (server *Server) getLanding(c *gin.Context) {

responseSlider = append(responseSlider, slider_images...)

// c.JSON(http.StatusOK, gin.H{
// "categories": categories})

// c.JSON(http.StatusOK, gin.H{
// "Slider images": slider_images})
// server.getRandomServices(c)

c.JSON(http.StatusOK, gin.H{
"categories": responseCategories,
"servicesForCategories": responseServices,
Expand Down

0 comments on commit 9e5262c

Please sign in to comment.