summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 01:57:42 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 01:57:42 -0400
commit5c2da610a2cfd3fa9666d20739e054c3588b4d05 (patch)
treeb78f9ce7181a1c204787daedf8b8224f3f77ffa1 /web.go
parent33f2d33a4688cec0fc18bb38f7fae49aedc40504 (diff)
downloadgitea-5c2da610a2cfd3fa9666d20739e054c3588b4d05.tar.gz
gitea-5c2da610a2cfd3fa9666d20739e054c3588b4d05.zip
Move binding as subrepo
Diffstat (limited to 'web.go')
-rw-r--r--web.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/web.go b/web.go
index a17be2a34a..8ae074ec01 100644
--- a/web.go
+++ b/web.go
@@ -14,7 +14,6 @@ import (
qlog "github.com/qiniu/log"
- "github.com/gogits/binding"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/avatar"
"github.com/gogits/gogs/modules/base"
@@ -67,7 +66,7 @@ func runWeb(*cli.Context) {
reqSignOut := middleware.Toggle(&middleware.ToggleOptions{SignOutRequire: true})
- bindIgnErr := binding.BindIgnErr
+ bindIgnErr := middleware.BindIgnErr
// Routers.
m.Get("/", ignSignIn, routers.Home)
@@ -102,7 +101,7 @@ func runWeb(*cli.Context) {
r.Post("/setting", bindIgnErr(auth.UpdateProfileForm{}), user.SettingPost)
}, reqSignIn)
m.Group("/user", func(r martini.Router) {
- r.Get("/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
+ r.Get("/feeds", middleware.Bind(auth.FeedsForm{}), user.Feeds)
r.Get("/activate", user.Activate)
r.Get("/email2user", user.Email2User)
r.Get("/forget_password", user.ForgotPasswd)