Browse Source

补充gitRepo

tags/v1.22.11.2^2
ychao_1983 3 years ago
parent
commit
c34021b030
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

@@ -1011,11 +1011,11 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/train-job", func() {
m.Get("/:jobid", reqRepoReader(models.UnitTypeCloudBrain), repo.CloudBrainShow)

m.Post("/create", reqRepoWriter(models.UnitTypeCloudBrain), reqWeChat(), bind(api.CreateTrainJobOption{}), repo.CreateCloudBrain)
m.Post("/create", reqRepoWriter(models.UnitTypeCloudBrain), reqWeChat(), context.ReferencesGitRepo(false), bind(api.CreateTrainJobOption{}), repo.CreateCloudBrain)

})
m.Group("/inference-job", func() {
m.Post("/create", reqRepoWriter(models.UnitTypeCloudBrain), reqWeChat(), bind(api.CreateTrainJobOption{}), repo.CreateCloudBrainInferenceTask)
m.Post("/create", reqRepoWriter(models.UnitTypeCloudBrain), reqWeChat(), bind(api.CreateTrainJobOption{}), context.ReferencesGitRepo(false), repo.CreateCloudBrainInferenceTask)
m.Get("/:jobid", reqRepoReader(models.UnitTypeCloudBrain), repo.CloudBrainShow)
})



Loading…
Cancel
Save