aboutsummaryrefslogtreecommitdiffstats
path: root/routers/routes/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r--routers/routes/routes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index ac71b5eba3..9d9e656433 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -554,6 +554,10 @@ func RegisterRoutes(m *macaron.Macaron) {
return
}
})
+
+ m.Group("/branches", func() {
+ m.Post("/_new/*", context.RepoRef(), bindIgnErr(auth.NewBranchForm{}), repo.CreateBranch)
+ }, reqRepoWriter, repo.MustBeNotBare)
}, reqSignIn, context.RepoAssignment(), context.UnitTypes(), context.LoadRepoUnits())
// Releases