summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-16 03:41:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-16 03:41:22 -0400
commit8de9517862acd77c27da015654fc236a6722d188 (patch)
tree5f228f7f9948945dfd4629f05c9d69eb28332e9d /web.go
parentc3e0554fd77f976b58a8da10d4878353bb895a78 (diff)
downloadgitea-8de9517862acd77c27da015654fc236a6722d188.tar.gz
gitea-8de9517862acd77c27da015654fc236a6722d188.zip
Mirror fix
Diffstat (limited to 'web.go')
-rw-r--r--web.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/web.go b/web.go
index b7138120a3..16f39bdb0e 100644
--- a/web.go
+++ b/web.go
@@ -50,6 +50,9 @@ func runWeb(*cli.Context) {
// Routers.
m.Get("/", middleware.SignInRequire(false), routers.Home)
+ m.Get("/issues", middleware.SignInRequire(true), user.Issues)
+ m.Get("/pulls", middleware.SignInRequire(true), user.Pulls)
+ m.Get("/stars", middleware.SignInRequire(true), user.Stars)
m.Any("/user/login", middleware.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
m.Any("/user/logout", middleware.SignInRequire(true), user.SignOut)
m.Any("/user/sign_up", middleware.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)
@@ -67,7 +70,12 @@ func runWeb(*cli.Context) {
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.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)
m.Get("/:username/:reponame/tree/:branchname/**",
middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single)
m.Get("/:username/:reponame/tree/:branchname",