Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
whosneksio committed May 20, 2024
1 parent c741c59 commit 9d17d42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func main() {

r.Use(ToLowerMiddleware())

r.GET("/", func(c *gin.Context) {
c.Redirect(http.StatusMovedPermanently, "/api")
})

r.GET("/api/", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"version": "1.0",
Expand Down

0 comments on commit 9d17d42

Please sign in to comment.