|
|
@ -1091,7 +1091,6 @@ func registerRoutes(m *web.Route) { |
|
|
|
}, context.RepoRef(), canEnableEditor, context.RepoMustNotBeArchived()) |
|
|
|
}, context.RepoRef(), canEnableEditor, context.RepoMustNotBeArchived()) |
|
|
|
|
|
|
|
|
|
|
|
m.Group("/branches", func() { |
|
|
|
m.Group("/branches", func() { |
|
|
|
m.Get("/list", repo.GetBranchesList) |
|
|
|
|
|
|
|
m.Group("/_new", func() { |
|
|
|
m.Group("/_new", func() { |
|
|
|
m.Post("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.CreateBranch) |
|
|
|
m.Post("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.CreateBranch) |
|
|
|
m.Post("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.CreateBranch) |
|
|
|
m.Post("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.CreateBranch) |
|
|
@ -1248,6 +1247,7 @@ func registerRoutes(m *web.Route) { |
|
|
|
}, repo.MustBeNotEmpty, dlSourceEnabled, reqRepoCodeReader) |
|
|
|
}, repo.MustBeNotEmpty, dlSourceEnabled, reqRepoCodeReader) |
|
|
|
|
|
|
|
|
|
|
|
m.Group("/branches", func() { |
|
|
|
m.Group("/branches", func() { |
|
|
|
|
|
|
|
m.Get("/list", repo.GetBranchesList) |
|
|
|
m.Get("", repo.Branches) |
|
|
|
m.Get("", repo.Branches) |
|
|
|
}, repo.MustBeNotEmpty, context.RepoRef(), reqRepoCodeReader) |
|
|
|
}, repo.MustBeNotEmpty, context.RepoRef(), reqRepoCodeReader) |
|
|
|
|
|
|
|
|
|
|
|