summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@sapk.fr>2016-01-28 20:49:05 +0100
committerAntoine GIRARD <sapk@sapk.fr>2016-01-28 20:51:19 +0100
commitb7b30cd85e5cabd9d643013ffb10dafd133b18ea (patch)
tree64c950a4add6d9482d3dd4daebaea5e1839eb866 /routers/api/v1/api.go
parent81e5722bcc80e560f4e50874a9319f5c5fd3c0f3 (diff)
downloadgitea-b7b30cd85e5cabd9d643013ffb10dafd133b18ea.tar.gz
gitea-b7b30cd85e5cabd9d643013ffb10dafd133b18ea.zip
Corrections following recommendations
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 0152eec29a..04b392fc9b 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).