From e9b475a23088d87825440cf8abba89c11e37990b Mon Sep 17 00:00:00 2001 From: "qiang.ou" Date: Fri, 17 Nov 2017 13:42:02 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20API=E8=B0=83=E7=94=A8=E6=8A=A5403?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/routers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/routers.go b/routers/routers.go index 3bfa014..49c5ff3 100644 --- a/routers/routers.go +++ b/routers/routers.go @@ -239,6 +239,7 @@ func urlAuth(ctx *macaron.Context, sess session.Store) { "/user/login", "/user/logout", "/user/editMyPassword", + "/api", } uri := strings.TrimSpace(ctx.Req.URL.Path) uri = strings.TrimRight(uri, "/")