summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorKasi Reddy <KasiR1995@hotmail.co.uk>2018-11-28 21:17:09 +0000
committertechknowlogick <hello@techknowlogick.com>2018-11-28 16:17:09 -0500
commitd5d847e5c4f0cf1470fc51f96d57917e4d9f5d83 (patch)
tree0b5ae3c16e519a9fac63701b393155815ec1efa4 /routers/api/v1/api.go
parentf17524bd0c8bc1b27760085d5afa6fc66ba208c6 (diff)
downloadgitea-d5d847e5c4f0cf1470fc51f96d57917e4d9f5d83.tar.gz
gitea-d5d847e5c4f0cf1470fc51f96d57917e4d9f5d83.zip
Git-Trees API (#5403)
* Git-Trees API * update vendor'd libs * added comments to exported function and formatted. * make fmt * update per @lafirks feedback
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 47e556c881..0284e845ff 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -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())
})