diff --git a/utils/config.go b/utils/config.go index 69f9130..27707c3 100644 --- a/utils/config.go +++ b/utils/config.go @@ -105,7 +105,9 @@ func RegisterStaticRoute(engine *gin.Engine) { for _, route := range redirectRoutes { engine.Any(fmt.Sprintf("%s/*path", route), func(c *gin.Context) { path := c.Param("path") - c.Redirect(301, fmt.Sprintf("/api%s/%s", route, path)) + + c.Request.URL.Path = path + engine.HandleContext(c) }) }