From c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Fri, 15 Jan 2016 19:24:03 +0100 Subject: Near ready --- routers/api/v1/api.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'routers/api/v1/api.go') diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 6fe11a07..0152eec2 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -183,7 +183,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Patch("/hooks/:id:int", bind(api.EditHookOption{}), repo.EditHook) m.Get("/raw/*", middleware.RepoRef(), repo.GetRawFile) m.Get("/archive/*", repo.GetArchive) - + m.Group("/branches", func() { + m.Get("",repo.ListBranches) + m.Get("/:id",repo.GetBranch) + }) m.Group("/keys", func() { m.Combo("").Get(repo.ListDeployKeys). Post(bind(api.CreateKeyOption{}), repo.CreateDeployKey) -- cgit v1.2.3