api: add GetReferenceSHA (#5546)

This commit is contained in:
Unknwon
2018-12-16 19:47:32 -05:00
parent cc1a168aa0
commit f91cb9321e
5 changed files with 51 additions and 3 deletions

View File

@@ -252,6 +252,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/commits", func() {
m.Get("/:sha", repo.GetSingleCommit)
m.Get("/*", repo.GetReferenceSHA)
})
m.Group("/keys", func() {