]> source.dussan.org Git - gitea.git/commitdiff
Merge branch 'master' of github.com:gogits/gogs
authorUnknown <joe2010xtmf@163.com>
Thu, 13 Mar 2014 05:01:28 +0000 (01:01 -0400)
committerUnknown <joe2010xtmf@163.com>
Thu, 13 Mar 2014 05:01:28 +0000 (01:01 -0400)
1  2 
web.go

diff --cc web.go
index 1f34891bc48de20c0d0c3b7341e7f37b758ad71b,c204131662c5dfd450b20dc067fd40cdba99937c..775735adc608b2aeac89e809f7782f084814fea1
--- 1/web.go
--- 2/web.go
+++ b/web.go
@@@ -74,9 -73,8 +74,10 @@@ 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", auth.SignInRequire(false), repo.Single)
  
 +      m.Get("/:username/:reponame", repo.Repo)
 +
        listenAddr := fmt.Sprintf("%s:%s",
                base.Cfg.MustValue("server", "HTTP_ADDR"),
                base.Cfg.MustValue("server", "HTTP_PORT", "3000"))