Browse Source

mod route

tags/v1.21.11.1
lewis 5 years ago
parent
commit
480a5e2f5e
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      routers/api/v1/api.go

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

@@ -857,8 +857,10 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/:jobid", repo.GetModelArtsNotebook)
})
m.Group("/train-job", func() {
m.Get("/:jobid", repo.GetModelArtsTrainJob)
m.Get("/log", repo.TrainJobGetLog)
m.Group("/:jobid", func() {
m.Get("", repo.GetModelArtsTrainJob)
m.Get("/log", repo.TrainJobGetLog)
})
})
}, reqRepoReader(models.UnitTypeCloudBrain))
}, repoAssignment())


Loading…
Cancel
Save