Skip to content

Commit 5f6aa77

Browse files
Update main.go
1 parent 24d406f commit 5f6aa77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func main() {
4444
defer db.Close()
4545
router := gin.Default()
4646
router.GET("/home", func(c *gin.Context){
47-
return c.JSON(200, gin.H{"hello": "home"})
47+
return c.JSON(200, {"hello": "home"})
4848
})
4949
router.GET("/products", controllers.GetProducts(db))
5050
router.GET("/products/:guid", controllers.GetProduct(db))

0 commit comments

Comments
 (0)