summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
commit27104ac89a4c489809068ae5c6dbe383ce7fbde2 (patch)
tree2f19eeecc08209285d9aee53c0c224a4fd8967d3 /web.go
parent18ba14913746c6c436c4632bdc9174ecfcd59dda (diff)
downloadgitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.tar.gz
gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.zip
Add delete repo
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 6d57f120c9..475b662b39 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)