diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 02:39:09 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 02:39:09 -0400 |
commit | 27104ac89a4c489809068ae5c6dbe383ce7fbde2 (patch) | |
tree | 2f19eeecc08209285d9aee53c0c224a4fd8967d3 /web.go | |
parent | 18ba14913746c6c436c4632bdc9174ecfcd59dda (diff) | |
download | gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.tar.gz gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.zip |
Add delete repo
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |