|
|
@@ -993,7 +993,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("", reqRepoCloudBrainReader, repo.CloudBrainShow) |
|
|
|
}) |
|
|
|
m.Group("/:jobid", func() { |
|
|
|
m.Get("/debug", reqWechatBind, cloudbrain.AdminOrJobCreaterRight, repo.CloudBrainDebug) |
|
|
|
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.CloudBrainDebug) |
|
|
|
m.Post("/commit_image", cloudbrain.AdminOrJobCreaterRight, bindIgnErr(auth.CommitImageCloudBrainForm{}), repo.CloudBrainCommitImage) |
|
|
|
m.Post("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.CloudBrainStop) |
|
|
|
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.CloudBrainDel) |
|
|
@@ -1060,7 +1060,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
*/ |
|
|
|
m.Group("/:jobid", func() { |
|
|
|
m.Get("", reqRepoCloudBrainReader, repo.NotebookShow) |
|
|
|
m.Get("/debug", reqWechatBind, cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2) |
|
|
|
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2) |
|
|
|
m.Post("/:action", reqRepoCloudBrainWriter, repo.NotebookManage) |
|
|
|
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.NotebookDel) |
|
|
|
}) |
|
|
|