2024-12-22 03:27:16 +00:00
|
|
|
diff --git a/routers/web/web.go b/routers/web/web.go
|
2024-12-22 03:37:23 +00:00
|
|
|
index bd2da620e2..733f84cd3f 100644
|
2024-12-22 03:27:16 +00:00
|
|
|
--- a/routers/web/web.go
|
|
|
|
+++ b/routers/web/web.go
|
2024-12-22 03:37:23 +00:00
|
|
|
@@ -1436,18 +1436,6 @@ func registerRoutes(m *web.Route) {
|
2024-12-22 03:27:16 +00:00
|
|
|
m.Group("/{username}/{reponame}/activity", func() {
|
|
|
|
m.Get("", repo.Activity)
|
|
|
|
m.Get("/{period}", repo.Activity)
|
|
|
|
- m.Group("/contributors", func() {
|
|
|
|
- m.Get("", repo.Contributors)
|
|
|
|
- m.Get("/data", repo.ContributorsData)
|
|
|
|
- })
|
|
|
|
- m.Group("/code-frequency", func() {
|
|
|
|
- m.Get("", repo.CodeFrequency)
|
|
|
|
- m.Get("/data", repo.CodeFrequencyData)
|
|
|
|
- })
|
|
|
|
- m.Group("/recent-commits", func() {
|
|
|
|
- m.Get("", repo.RecentCommits)
|
|
|
|
- m.Get("/data", repo.RecentCommitsData)
|
|
|
|
- })
|
|
|
|
},
|
2024-12-22 03:37:23 +00:00
|
|
|
ignSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypePullRequests, unit.TypeIssues, unit.TypeReleases),
|
2024-12-22 03:27:16 +00:00
|
|
|
context.RepoRef(), repo.MustBeNotEmpty,
|