Skip to content
Permalink
Browse files

update the we talk

  • Loading branch information...
astaxie committed Jun 19, 2014
1 parent 101018f commit 5f90e2a1a4c49d9d95b2361e954d959e7e68a310
Showing with 4 additions and 4 deletions.
  1. +4 −4 wetalk.go
@@ -69,9 +69,9 @@ func main() {
}

// Add Filters
beego.AddFilter("/img/:", "BeforeRouter", attachment.ImageFilter)
beego.InsertFilter("/img/*", beego.BeforeRouter, attachment.ImageFilter)

beego.AddFilter("/captcha/:", "BeforeRouter", setting.Captcha.Handler)
beego.InsertFilter("/captcha/*", beego.BeforeRouter, setting.Captcha.Handler)

// Register routers.
posts := new(post.PostListRouter)
@@ -102,8 +102,8 @@ func main() {
beego.Router("/login", login, "get:Get;post:Login")
beego.Router("/logout", login, "get:Logout")

beego.AddFilter("/login/:/access", "BeforeRouter", auth.OAuthAccess)
beego.AddFilter("/login/:", "BeforeRouter", auth.OAuthRedirect)
beego.InsertFilter("/login/:id/access", beego.BeforeRouter, auth.OAuthAccess)
beego.InsertFilter("/login/*", beego.BeforeRouter, auth.OAuthRedirect)

socialR := new(auth.SocialAuthRouter)
beego.Router("/register/connect", socialR, "get:Connect;post:ConnectPost")

0 comments on commit 5f90e2a

Please sign in to comment.
You can’t perform that action at this time.