Browse Source

#3168

update
tags/v1.22.11.2^2
chenyifan01 3 years ago
parent
commit
04b054ef1f
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      routers/routes/routes.go

+ 6
- 0
routers/routes/routes.go View File

@@ -1488,6 +1488,12 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/record/list", point.GetPointRecordList)
}, reqSignIn)

m.Group("/resources", func() {
m.Group("/queue", func() {
m.Get("/centers", admin.GetResourceAiCenters)
})
})

if setting.API.EnableSwagger {
m.Get("/swagger.v1.json", templates.JSONRenderer(), routers.SwaggerV1Json)
}


Loading…
Cancel
Save