|
|
@@ -543,6 +543,10 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("/get_multipart_url", repo.GetMultipartUploadUrl) |
|
|
|
m.Post("/complete_multipart", repo.CompleteMultipart) |
|
|
|
|
|
|
|
}, reqToken()) |
|
|
|
m.Group("/pipeline", func() { |
|
|
|
m.Post("/notification", bind(api.PipelineNotification{}), notify.PipelineNotify) |
|
|
|
|
|
|
|
}, reqToken()) |
|
|
|
|
|
|
|
// Notifications |
|
|
@@ -995,6 +999,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("/detail", reqToken(), reqRepoReader(models.UnitTypeCloudBrain), repo.CloudBrainShow) |
|
|
|
m.Get("/model_list", repo.CloudBrainModelList) |
|
|
|
m.Post("/stop_version", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo_ext.CloudBrainStop) |
|
|
|
m.Put("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo.GeneralCloudBrainJobStop) |
|
|
|
}) |
|
|
|
}) |
|
|
|
m.Group("/inference-job", func() { |
|
|
@@ -1019,6 +1024,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("/query_modelfile_for_predict", repo.QueryModelFileForPredict) |
|
|
|
m.Get("/query_train_model", repo.QueryTrainModelList) |
|
|
|
m.Post("/create_model_convert", repo.CreateModelConvert) |
|
|
|
m.Post("/convert_stop", repo.StopModelConvert) |
|
|
|
m.Get("/show_model_convert_page", repo.ShowModelConvertPage) |
|
|
|
m.Get("/query_model_convert_byId", repo.QueryModelConvertById) |
|
|
|
|
|
|
|