diff options
author | Unknwon <u@gogs.io> | 2015-09-11 12:03:08 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-11 12:03:08 -0400 |
commit | 121a81a2c554b2de0de89ab7749fe691b5d1aba7 (patch) | |
tree | cc0206c03f546734545c3355b09a3e060eeef7e7 /cmd/web.go | |
parent | 06174482826e81fb7c4675efff092e2986c4dac0 (diff) | |
download | gitea-121a81a2c554b2de0de89ab7749fe691b5d1aba7.tar.gz gitea-121a81a2c554b2de0de89ab7749fe691b5d1aba7.zip |
finish new edit auth UI
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 4f2eb26be6..bc8bb74efe 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -330,8 +330,8 @@ func runWeb(ctx *cli.Context) { m.Get("", admin.Authentications) m.Get("/new", admin.NewAuthSource) m.Post("/new", bindIgnErr(auth.AuthenticationForm{}), admin.NewAuthSourcePost) - m.Get("/:authid", admin.EditAuthSource) - m.Post("/:authid", bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost) + m.Combo("/:authid").Get(admin.EditAuthSource). + Post(bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost) m.Post("/:authid/delete", admin.DeleteAuthSource) }) |