fix docs redirect

This commit is contained in:
2025-08-06 20:15:53 -07:00
parent 8a0cd50b68
commit 9999d1ff87

View File

@@ -96,7 +96,7 @@ func setupRoutes(cfg *RouterConfig) (*gin.Engine, error) {
// Docs
public_api.GET("/docs/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
public_api.GET("/", func(ctx *gin.Context) {
ctx.Redirect(http.StatusPermanentRedirect, "/docs/index.html")
ctx.Redirect(http.StatusPermanentRedirect, "/public-api/docs/index.html")
})
}