aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api/v1/api.go')
-rw-r--r--internal/route/api/v1/api.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go
index a517c6df..f1684691 100644
--- a/internal/route/api/v1/api.go
+++ b/internal/route/api/v1/api.go
@@ -276,8 +276,13 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/*", repo.GetContents)
})
m.Get("/archive/*", repo.GetArchive)
- m.Group("/git/trees", func() {
- m.Get("/:sha", repo.GetRepoGitTree)
+ m.Group("/git", func() {
+ m.Group("/trees", func() {
+ m.Get("/:sha", repo.GetRepoGitTree)
+ })
+ m.Group("/blobs", func() {
+ m.Get("/:sha", repo.RepoGitBlob)
+ })
})
m.Get("/forks", repo.ListForks)
m.Get("/tags", repo.ListTags)