Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

杨树贤 / kefu_server

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 58dd4262 authored 4 years ago by chenxianqi's avatar chenxianqi
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

update FilterToken whitelist

parent 505c5d82
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 7 deletions
  • filters/index.go
  • routers/router.go
filters/index.go
View file @ 58dd4262
......@@ -25,9 +25,9 @@ var FilterToken = func(ctx *context.Context) {
// 地址白名单
whitelist := []string{
"/v1/auth/login",
"/v1/auth/logout",
"/v1/auth/token",
"/api/auth/login",
"/api/auth/logout",
"/api/auth/token",
}
oldToken := ctx.Input.Header("Authorization")
......
This diff is collapsed. Click to expand it.
routers/router.go
View file @ 58dd4262
......@@ -191,9 +191,6 @@ func init() {
// a new ns used /api
newNs := routers("/api")
// scrapped /v1
oldNs := routers("/v1")
beego.AddNamespace(newNs, oldNs)
beego.AddNamespace(newNs)
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment