|
@@ -1083,6 +1083,18 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.CloudBrainCreate) |
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.CloudBrainCreate) |
|
|
}) |
|
|
}) |
|
|
}, context.RepoRef()) |
|
|
}, context.RepoRef()) |
|
|
|
|
|
m.Group("/grampus", func() { |
|
|
|
|
|
m.Group("/train-job", func() { |
|
|
|
|
|
m.Group("/:jobid", func() { |
|
|
|
|
|
m.Get("", reqRepoCloudBrainReader, repo.CloudBrainTrainJobShow) |
|
|
|
|
|
m.Post("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.CloudBrainStop) |
|
|
|
|
|
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo.CloudBrainTrainJobDel) |
|
|
|
|
|
m.Get("/download_model", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo.CloudBrainDownloadModel) |
|
|
|
|
|
}) |
|
|
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.GrampusNew) |
|
|
|
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.GrampusCreate) |
|
|
|
|
|
}) |
|
|
|
|
|
}, context.RepoRef()) |
|
|
m.Group("/modelmanage", func() { |
|
|
m.Group("/modelmanage", func() { |
|
|
m.Post("/create_model", reqRepoModelManageWriter, repo.SaveModel) |
|
|
m.Post("/create_model", reqRepoModelManageWriter, repo.SaveModel) |
|
|
m.Post("/create_new_model", repo.SaveNewNameModel) |
|
|
m.Post("/create_new_model", repo.SaveNewNameModel) |
|
|