aboutsummaryrefslogtreecommitdiffstats
path: root/routers/routes/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r--routers/routes/routes.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index e2514054bf..a7828885bf 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -805,7 +805,9 @@ func RegisterRoutes(m *macaron.Macaron) {
// Releases
m.Group("/:username/:reponame", func() {
m.Group("/releases", func() {
- m.Get("/", repo.MustBeNotEmpty, repo.Releases)
+ m.Get("/", repo.Releases)
+ m.Get("/tag/:tag", repo.SingleRelease)
+ m.Get("/latest", repo.LatestRelease)
}, repo.MustBeNotEmpty, context.RepoRef())
m.Group("/releases", func() {
m.Get("/new", repo.NewRelease)