diff --git a/src/goadmin/router/middleware/demo.go b/src/goadmin/router/middleware/demo.go index 9840d2f4..f14539ef 100644 --- a/src/goadmin/router/middleware/demo.go +++ b/src/goadmin/router/middleware/demo.go @@ -10,7 +10,7 @@ func DemoEvn() gin.HandlerFunc { return func(c *gin.Context) { if config.ApplicationConfig.Env == "demo" { method := c.Request.Method - if method == "GET" || method == "OPTIONS" || c.Request.RequestURI == "/login" || c.Request.RequestURI == "/logout" { + if method == "GET" || method == "OPTIONS" || c.Request.RequestURI == "/login" || c.Request.RequestURI == "/api/v1/logout" { c.Next() } else { c.JSON(http.StatusOK, gin.H{