aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 02:09:55 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 02:09:55 -0400
commit18ba14913746c6c436c4632bdc9174ecfcd59dda (patch)
tree64868aa90dbc3cdc8c093c44ee067c4783d59fec /web.go
parentea765d25e21a5e2ff67ff39891962f5f23facda8 (diff)
parenta8d8e7256249cb280b39d114dd6d6eadd4fec187 (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index 9b7eff88..6d57f120 100644
--- a/web.go
+++ b/web.go
@@ -71,6 +71,8 @@ func runWeb(*cli.Context) {
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/list", auth.SignInRequire(false), repo.List)
+
+ m.Get("/:username/:reponame/settings", auth.SignInRequire(false), auth.RepoAssignment(true), repo.Setting)
m.Get("/:username/:reponame", auth.SignInRequire(false), auth.RepoAssignment(true), repo.Single)
//m.Get("/:username/:reponame", repo.Repo)