diff options
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) |