mirror of
https://github.com/gogs/gogs.git
synced 2025-12-24 01:00:00 +01:00
api: add GetReferenceSHA (#5546)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user