Add redirects

This commit is contained in:
qowevisa 2024-08-03 13:43:58 +03:00
parent 523b90b604
commit 7a63668801

View File

@ -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")