Browse Source

update

tags/v1.22.1.2
liuzx 3 years ago
parent
commit
028f37c81c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      routers/routes/routes.go

+ 1
- 2
routers/routes/routes.go View File

@@ -1022,8 +1022,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/create_version", cloudbrain.AdminOrJobCreaterRight, bindIgnErr(auth.CreateModelArtsTrainJobForm{}), repo.TrainJobCreateVersion) m.Post("/create_version", cloudbrain.AdminOrJobCreaterRight, bindIgnErr(auth.CreateModelArtsTrainJobForm{}), repo.TrainJobCreateVersion)
}) })
m.Get("/create", reqRepoCloudBrainWriter, repo.TrainJobNew) m.Get("/create", reqRepoCloudBrainWriter, repo.TrainJobNew)
// m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsTrainJobForm{}), repo.TrainJobCreate)
m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsInferenceJobForm{}), repo.InferenceJobCreate)
m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsTrainJobForm{}), repo.TrainJobCreate)


m.Get("/para-config-list", reqRepoCloudBrainReader, repo.TrainJobGetConfigList) m.Get("/para-config-list", reqRepoCloudBrainReader, repo.TrainJobGetConfigList)
}) })


Loading…
Cancel
Save