We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d406f commit 5f6aa77Copy full SHA for 5f6aa77
main.go
@@ -44,7 +44,7 @@ func main() {
44
defer db.Close()
45
router := gin.Default()
46
router.GET("/home", func(c *gin.Context){
47
- return c.JSON(200, gin.H{"hello": "home"})
+ return c.JSON(200, {"hello": "home"})
48
})
49
router.GET("/products", controllers.GetProducts(db))
50
router.GET("/products/:guid", controllers.GetProduct(db))
0 commit comments