Browse Source

添加PublicRute

pull/2/head
zhangxin 4 years ago
parent
commit
1a40d7640d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      conf/app.go

+ 2
- 2
conf/app.go View File

@ -29,10 +29,10 @@ var AppConfig AppConf = AppConf{
TimeFormat: "Mon, 01 Jan 2006 15:04:05 GMT", TimeFormat: "Mon, 01 Jan 2006 15:04:05 GMT",
Charset: "UTF-8", Charset: "UTF-8",
Other: Other{ Other: Other{
IgnoreURLs: []string{"/", "/user/login", "/user/courts", "/admin/tabnames/download", "/user/getimg", "/admin/stdeftab/selectarr", "/admin/stdeftab/selectall"}, //免token验证路径
IgnoreURLs: []string{"/", "/user/login", "/user/courts", "/admin/tabnames/download", "/user/getimg"}, //免token验证路径
JWTTimeout: 72000, JWTTimeout: 72000,
LogLevel: "debug", LogLevel: "debug",
Secret: "123456", Secret: "123456",
}, },
PublicRute: []string{"/sysMenu", "/user/getuserinfo", "/user/pwd", "/user/avatar", "/user/profile", "/user/getimg", "/admin/tabnames/list"}, //免权限检查路径
PublicRute: []string{"/sysMenu", "/user/getuserinfo", "/user/pwd", "/user/avatar", "/user/profile", "/user/getimg", "/admin/tabnames/list", "/admin/stdeftab/selectarr", "/admin/stdeftab/selectall"}, //免权限检查路径
} }

Loading…
Cancel
Save