diff options
author | Unknwon <u@gogs.io> | 2018-12-16 19:47:32 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-12-16 19:47:32 -0500 |
commit | f91cb9321e06cf3570ca373e16ca84804ef7950a (patch) | |
tree | 8bd7eda8874b465d9d94bafdf43e2e63de07beef /routes/api/v1/api.go | |
parent | cc1a168aa050b64b296b159436cd8350bdb95166 (diff) |
api: add GetReferenceSHA (#5546)
Diffstat (limited to 'routes/api/v1/api.go')
-rw-r--r-- | routes/api/v1/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go index ccecc6a7..d73f57f3 100644 --- a/routes/api/v1/api.go +++ b/routes/api/v1/api.go @@ -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() { |