diff options
author | slene <vslene@gmail.com> | 2014-03-17 14:36:28 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-17 14:36:28 +0800 |
commit | 3a2eee08278a71320140129ec29c8586264d9968 (patch) | |
tree | d49f49ba19b70334667eecd785482b111987fc2e /web.go | |
parent | d64a8e8d3aa5f1dc606860c0950a8b7dbebf944c (diff) | |
download | gitea-3a2eee08278a71320140129ec29c8586264d9968.tar.gz gitea-3a2eee08278a71320140129ec29c8586264d9968.zip |
fix repo setting and delete repo
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -68,11 +68,12 @@ func runWeb(*cli.Context) { m.Get("/user/:username", middleware.SignInRequire(false), user.Profile) m.Any("/repo/create", middleware.SignInRequire(true), binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create) - m.Any("/repo/delete", middleware.SignInRequire(true), binding.Bind(auth.DeleteRepoForm{}), repo.Delete) m.Get("/help", routers.Help) - m.Get("/:username/:reponame/settings", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Setting) + m.Post("/:username/:reponame/settings", middleware.SignInRequire(true), middleware.RepoAssignment(true), repo.SettingPost) + m.Get("/:username/:reponame/settings", middleware.SignInRequire(true), middleware.RepoAssignment(true), repo.Setting) + m.Get("/:username/:reponame/commits", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Commits) m.Get("/:username/:reponame/issues", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Issues) m.Get("/:username/:reponame/pulls", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Pulls) |