mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 18:05:19 +02:00
Move binding as subrepo
This commit is contained in:
parent
33f2d33a46
commit
5c2da610a2
18 changed files with 1594 additions and 445 deletions
5
web.go
5
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue