Browse Source

Merge pull request '解决路由定义冲突问题' (#791) from fix-674 into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/791
Reviewed-by: lewis <747342561@qq.com>
pull/816/head
lewis 3 years ago
parent
commit
466c95e3e9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/api/v1/api.go

+ 2
- 2
routers/api/v1/api.go View File

@@ -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)


Loading…
Cancel
Save