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.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 8875fa47bf..e6079445bb 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -613,6 +613,11 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/*", repo.WikiRaw)
}, repo.MustEnableWiki)
+ m.Group("/activity", func() {
+ m.Get("", repo.Activity)
+ m.Get("/:period", repo.Activity)
+ }, context.RepoRef(), repo.MustBeNotBare, context.CheckAnyUnit(models.UnitTypePullRequests, models.UnitTypeIssues, models.UnitTypeReleases))
+
m.Get("/archive/*", repo.MustBeNotBare, context.CheckUnit(models.UnitTypeCode), repo.Download)
m.Group("/pulls/:index", func() {