summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-05 23:30:04 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-05 23:30:04 -0500
commit4e7eb5be9d3e9c9ba7238769d2b5f2f471d51b67 (patch)
treee563d92084e488d97839e7e227e3e7dc6662fad9 /cmd
parentb37519235242b17e47c71dec53ad61a6ca4bedc1 (diff)
downloadgitea-4e7eb5be9d3e9c9ba7238769d2b5f2f471d51b67.tar.gz
gitea-4e7eb5be9d3e9c9ba7238769d2b5f2f471d51b67.zip
Work on #5 fork and fix #608
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index dc89fed78d..73cec968d0 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -265,7 +265,7 @@ func runWeb(*cli.Context) {
reqTrueOwner := middleware.RequireTrueOwner()
- // Organization routers.
+ // Organization.
m.Group("/org", func() {
m.Get("/create", org.Create)
m.Post("/create", bindIgnErr(auth.CreateOrgForm{}), org.CreatePost)
@@ -309,12 +309,14 @@ func runWeb(*cli.Context) {
m.Get("/:org", org.Home)
}, middleware.OrgAssignment(true))
- // Repository routers.
+ // Repository.
m.Group("/repo", func() {
m.Get("/create", repo.Create)
m.Post("/create", bindIgnErr(auth.CreateRepoForm{}), repo.CreatePost)
m.Get("/migrate", repo.Migrate)
m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost)
+ m.Get("/fork", repo.Fork)
+ m.Post("/fork", bindIgnErr(auth.CreateRepoForm{}), repo.ForkPost)
}, reqSignIn)
m.Group("/:username/:reponame", func() {