From b7b30cd85e5cabd9d643013ffb10dafd133b18ea Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Thu, 28 Jan 2016 20:49:05 +0100 Subject: Corrections following recommendations --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/api.go') diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 0152eec2..04b392fc 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -185,7 +185,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/archive/*", repo.GetArchive) m.Group("/branches", func() { m.Get("",repo.ListBranches) - m.Get("/:id",repo.GetBranch) + m.Get("/:branchname",repo.GetBranch) }) m.Group("/keys", func() { m.Combo("").Get(repo.ListDeployKeys). -- cgit v1.2.3