mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修复跳转BUG
This commit is contained in:
parent
3e9e5558ab
commit
137019789e
@ -35,8 +35,7 @@ func init() {
|
|||||||
beego.InsertFilter("/book", beego.BeforeRouter, FilterUser)
|
beego.InsertFilter("/book", beego.BeforeRouter, FilterUser)
|
||||||
beego.InsertFilter("/book/*", beego.BeforeRouter, FilterUser)
|
beego.InsertFilter("/book/*", beego.BeforeRouter, FilterUser)
|
||||||
beego.InsertFilter("/api/*", beego.BeforeRouter, FilterUser)
|
beego.InsertFilter("/api/*", beego.BeforeRouter, FilterUser)
|
||||||
beego.InsertFilter("/blogs", beego.BeforeRouter,FilterUser)
|
beego.InsertFilter("/manage/*", beego.BeforeRouter,FilterUser)
|
||||||
beego.InsertFilter("/blogs/*", beego.BeforeRouter,FilterUser)
|
|
||||||
|
|
||||||
var FinishRouter = func(ctx *context.Context) {
|
var FinishRouter = func(ctx *context.Context) {
|
||||||
ctx.ResponseWriter.Header().Add("MinDoc-Version", conf.VERSION)
|
ctx.ResponseWriter.Header().Add("MinDoc-Version", conf.VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user