mirror of https://github.com/ouqiang/gocron
bugfix: API调用报403错误
parent
8720c18654
commit
e9b475a230
|
@ -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, "/")
|
||||
|
|
Loading…
Reference in New Issue