|
|
@@ -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) |
|
|
}) |
|
|
}) |
|
|
|