|
|
@@ -1352,7 +1352,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Group("/:jobid", func() { |
|
|
|
m.Get("", reqRepoCloudBrainReader, repo.InferenceJobShow) |
|
|
|
m.Get("/result_download", cloudbrain.AdminOrJobCreaterRightForTrain, repo.ResultDownload) |
|
|
|
m.Get("/downloadall", repo.DownloadMultiResultFile) |
|
|
|
m.Get("/downloadall", cloudbrain.AdminOrJobCreaterRightForTrain, repo.DownloadMultiResultFile) |
|
|
|
}) |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, context.PointAccount(), repo.InferenceJobNew) |
|
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsInferenceJobForm{}), repo.InferenceJobCreate) |
|
|
|