aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-13 14:50:32 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-13 14:50:32 +0800
commit1902500b0dcefa20627129b48c8131da8798c169 (patch)
tree1a960236b5de97bafaddc76e4bc18830ccc30e3d /web.go
parent3a1fa012f7069c5d6b606a3330ec68abdcc125ed (diff)
parent27104ac89a4c489809068ae5c6dbe383ce7fbde2 (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web.go b/web.go
index 6d57f120..475b662b 100644
--- a/web.go
+++ b/web.go
@@ -69,7 +69,7 @@ func runWeb(*cli.Context) {
m.Get("/user/:username", auth.SignInRequire(false), user.Profile)
m.Any("/repo/create", auth.SignInRequire(true), binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create)
- m.Any("/repo/delete", auth.SignInRequire(true), repo.Delete)
+ m.Any("/repo/delete", auth.SignInRequire(true), binding.Bind(auth.DeleteRepoForm{}), repo.Delete)
m.Any("/repo/list", auth.SignInRequire(false), repo.List)
m.Get("/:username/:reponame/settings", auth.SignInRequire(false), auth.RepoAssignment(true), repo.Setting)