Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git-Trees API #5403

Merged
merged 10 commits into from
Nov 28, 2018
Prev Previous commit
Next Next commit
update per @lafirks feedback
  • Loading branch information
techknowlogick committed Nov 28, 2018
commit ba600c9ec4b8422d8cdf84f390d6f3cfe0eaaedc
4 changes: 1 addition & 3 deletions routers/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,6 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/:username/:reponame", func() {
m.Combo("").Get(reqAnyRepoReader(), repo.Get).
Delete(reqToken(), reqOwner(), repo.Delete)
m.Group("/git/trees", func() {
m.Combo("/:sha", context.RepoRef()).Get(repo.GetTree)
})
m.Group("/hooks", func() {
m.Combo("").Get(repo.ListHooks).
Post(bind(api.CreateHookOption{}), repo.CreateHook)
Expand Down Expand Up @@ -613,6 +610,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/git", func() {
m.Get("/refs", repo.GetGitAllRefs)
m.Get("/refs/*", repo.GetGitRefs)
m.Combo("/trees/:sha", context.RepoRef()).Get(repo.GetTree)
}, reqRepoReader(models.UnitTypeCode))
}, repoAssignment())
})
Expand Down