summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorcamlafit <cam.lafit@azerttyu.net>2017-06-07 17:57:28 +0200
committerGitHub <noreply@github.com>2017-06-07 17:57:28 +0200
commit952cb8046f83bd39c2fff41b5d67c514d822e948 (patch)
tree9556b4f494f7c643e120eaedc37bff8b4df37357 /routers/api
parentd9a8eff2def111d1b038cbceea0a6b3ed7d43300 (diff)
downloadgitea-952cb8046f83bd39c2fff41b5d67c514d822e948.tar.gz
gitea-952cb8046f83bd39c2fff41b5d67c514d822e948.zip
A missing / to provide a correct endpoint
solve #1899
Diffstat (limited to 'routers/api')
-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 9ff71ed2f2..f5a301fc8b 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -487,7 +487,7 @@ func RegisterRoutes(m *macaron.Macaron) {
})
m.Group("/repos", func() {
m.Get("", org.GetTeamRepos)
- m.Combo(":orgname/:reponame").
+ m.Combo("/:orgname/:reponame").
Put(org.AddTeamRepository).
Delete(org.RemoveTeamRepository)
})