diff options
Diffstat (limited to 'internal/route/api/v1/api.go')
-rw-r--r-- | internal/route/api/v1/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go index 56e7bcd2..6f5ebdb5 100644 --- a/internal/route/api/v1/api.go +++ b/internal/route/api/v1/api.go @@ -272,6 +272,9 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/raw/*", context.RepoRef(), repo2.GetRawFile) m.Get("/archive/*", repo2.GetArchive) + m.Group("/git/trees", func() { + m.Get("/:sha", context.RepoRef(), repo2.GetRepoGitTree) + }) m.Get("/forks", repo2.ListForks) m.Group("/branches", func() { m.Get("", repo2.ListBranches) |