Browse Source

Merge branch 'train-job' of https://git.openi.org.cn/OpenI/aiforge into train-job

pull/625/head
Gitea 4 years ago
parent
commit
6a831a1584
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.Get("/:jobid", repo.GetModelArtsNotebook)
}) })
m.Group("/train-job", func() { 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)) }, reqRepoReader(models.UnitTypeCloudBrain))
}, repoAssignment()) }, repoAssignment())


Loading…
Cancel
Save