From 3edd43e7a0b43f0526aac75c936e5dfc7f7a7172 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Mon, 16 Mar 2020 11:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=94=E7=A4=BA=E7=8E=AF=E5=A2=83=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/goadmin/router/middleware/demo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{