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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go
index 6f5ebdb5..afc50191 100644
--- a/internal/route/api/v1/api.go
+++ b/internal/route/api/v1/api.go
@@ -271,6 +271,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, reqRepoAdmin())
m.Get("/raw/*", context.RepoRef(), repo2.GetRawFile)
+ m.Get("/contents/*", context.RepoRef(), repo2.GetContents)
m.Get("/archive/*", repo2.GetArchive)
m.Group("/git/trees", func() {
m.Get("/:sha", context.RepoRef(), repo2.GetRepoGitTree)