diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index b2e701998..02bfc6731 100755 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -528,10 +528,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/projectboard", func() { m.Get("/restoreFork", adminReq, repo.RestoreForkNumber) - + m.Get("/downloadAll", adminReq, repo.ServeAllProjectsPeriodStatisticsFile) m.Group("/project", func() { m.Get("", adminReq, repo.GetAllProjectsPeriodStatistics) - m.Get("/download", adminReq, repo.ServeAllProjectsPeriodStatisticsFile) + m.Group("/:id", func() { m.Get("", adminReq, repo.GetProjectLatestStatistics) m.Get("/period", adminReq, repo.GetProjectPeriodStatistics)