diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 451f35e..8bfd191 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -54,6 +54,12 @@ func main() { } r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) + r.GET("/swagger", func(c *gin.Context) { + c.Redirect(301, "/swagger/index.html") + }) + r.GET("/docs", func(c *gin.Context) { + c.Redirect(301, "/swagger/index.html") + }) go tokens.StartTokens() r.Run(":3000")