api: minor changes to /repo/owner/repo/git/trees (#5982)

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-03-11 01:28:26 +08:00
committed by GitHub
parent 047bf94908
commit 927ffef864
2 changed files with 31 additions and 24 deletions

View File

@@ -274,7 +274,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/contents/*", repo.GetContents)
m.Get("/archive/*", repo.GetArchive)
m.Group("/git/trees", func() {
m.Get("/:sha", context.RepoRef(), repo.GetRepoGitTree)
m.Get("/:sha", repo.GetRepoGitTree)
})
m.Get("/forks", repo.ListForks)
m.Group("/branches", func() {