Skip to content

Commit

Permalink
docs: fix route group example code
Browse files Browse the repository at this point in the history
  • Loading branch information
demouth committed Jul 30, 2024
1 parent cc4e114 commit 113676a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,16 +338,16 @@ func main() {
router := gin.Default()

// Simple group: v1
v1 := router.Group("/v1")
{
v1 := router.Group("/v1")
v1.POST("/login", loginEndpoint)
v1.POST("/submit", submitEndpoint)
v1.POST("/read", readEndpoint)
}

// Simple group: v2
v2 := router.Group("/v2")
{
v2 := router.Group("/v2")
v2.POST("/login", loginEndpoint)
v2.POST("/submit", submitEndpoint)
v2.POST("/read", readEndpoint)
Expand Down

0 comments on commit 113676a

Please sign in to comment.