Git-Trees API (#5403)

* Git-Trees API

* update vendor'd libs

* added comments to exported function and formatted.

* make fmt

* update per @lafirks feedback
This commit is contained in:
Kasi Reddy 2018-11-28 21:17:09 +00:00 committed by techknowlogick
parent f17524bd0c
commit d5d847e5c4
4 changed files with 134 additions and 2 deletions

View file

@ -610,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())
})