summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-16 00:03:23 +0800
committerslene <vslene@gmail.com>2014-03-16 00:03:23 +0800
commit7ca830677525e6fc9127660fde32c46bcf00ab59 (patch)
tree3e4234b6f59a64783c173ff43dec239a263f97f7 /web.go
parentf047df6e2b69ecb41c3fe4bef746145916aa4063 (diff)
downloadgitea-7ca830677525e6fc9127660fde32c46bcf00ab59.tar.gz
gitea-7ca830677525e6fc9127660fde32c46bcf00ab59.zip
modify RepoAssignment
Diffstat (limited to 'web.go')
-rw-r--r--web.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/web.go b/web.go
index ad19a5da01..af430917f5 100644
--- a/web.go
+++ b/web.go
@@ -68,12 +68,12 @@ func runWeb(*cli.Context) {
m.Any("/repo/delete", middleware.SignInRequire(true), binding.Bind(auth.DeleteRepoForm{}), repo.Delete)
m.Any("/repo/list", middleware.SignInRequire(false), repo.List)
- m.Get("/:username/:reponame/settings", middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Setting)
+ m.Get("/:username/:reponame/settings", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Setting)
m.Get("/:username/:reponame/tree/:branchname/**",
- middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single)
+ middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single)
m.Get("/:username/:reponame/tree/:branchname",
- middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single)
- m.Get("/:username/:reponame", middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single)
+ middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single)
+ m.Get("/:username/:reponame", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single)
//m.Get("/:username/:reponame", repo.Repo)