diff options
author | Unknwon <u@gogs.io> | 2018-12-15 00:24:41 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-12-15 00:24:41 -0500 |
commit | ee82d35ed807b32aaf04a505e5b5260f20aaf641 (patch) | |
tree | 56eda61eccb6bf1317ba1fc260a575a99d935ece /routes/api/v1/api.go | |
parent | 8bca30cfe44bd443906dc7a6d1491a94220a1dc1 (diff) |
api: add GetSingleCommit (#5546)
Diffstat (limited to 'routes/api/v1/api.go')
-rw-r--r-- | routes/api/v1/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go index 2fb2ebb0..ccecc6a7 100644 --- a/routes/api/v1/api.go +++ b/routes/api/v1/api.go @@ -249,6 +249,11 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("", repo.ListBranches) m.Get("/*", repo.GetBranch) }) + + m.Group("/commits", func() { + m.Get("/:sha", repo.GetSingleCommit) + }) + m.Group("/keys", func() { m.Combo("").Get(repo.ListDeployKeys). Post(bind(api.CreateKeyOption{}), repo.CreateDeployKey) |