diff options
author | Unknwon <u@gogs.io> | 2017-03-10 23:37:25 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-10 23:37:25 -0500 |
commit | 3eb57370a658a648ba504776b962d1d23cc57693 (patch) | |
tree | 44b176df7c7d13f8d31717e2346e9269b49cc0ea /routers/api/v1/api.go | |
parent | ac8b1e595fa7ace7e2539276355954b2dceeb388 (diff) |
api/repo: fix cannot reponse branch with slashes (#4198)
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index df5fb5c3..6221bcd7 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -258,7 +258,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/forks", repo.ListForks) m.Group("/branches", func() { m.Get("", repo.ListBranches) - m.Get("/:branchname", repo.GetBranch) + m.Get("/*", repo.GetBranch) }) m.Group("/keys", func() { m.Combo("").Get(repo.ListDeployKeys). |