Add redirects
This commit is contained in:
parent
523b90b604
commit
7a63668801
|
@ -54,6 +54,12 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
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()
|
go tokens.StartTokens()
|
||||||
r.Run(":3000")
|
r.Run(":3000")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user