Browse Source

fix-bug

pull/1510/head
liuzx 3 years ago
parent
commit
dda9a7ee77
1 changed files with 10 additions and 8 deletions
  1. +10
    -8
      routers/routes/routes.go

+ 10
- 8
routers/routes/routes.go View File

@@ -1031,14 +1031,16 @@ func RegisterRoutes(m *macaron.Macaron) {


m.Group("/modelarts", func() { m.Group("/modelarts", func() {
m.Group("/notebook", func() { m.Group("/notebook", func() {
// m.Group("/:jobid", func() {
// m.Get("", reqRepoCloudBrainReader, repo.NotebookShow)
// m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug)
// m.Post("/:action", reqRepoCloudBrainWriter, repo.NotebookManage)
// m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.NotebookDel)
// })
// m.Get("/create", reqRepoCloudBrainWriter, repo.NotebookNew)
// m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsNotebookForm{}), repo.NotebookCreate)
/* v1.0
m.Group("/:jobid", func() {
m.Get("", reqRepoCloudBrainReader, repo.NotebookShow)
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug)
m.Post("/:action", reqRepoCloudBrainWriter, repo.NotebookManage)
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.NotebookDel)
})
m.Get("/create", reqRepoCloudBrainWriter, repo.NotebookNew)
m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsNotebookForm{}), repo.NotebookCreate)
*/
m.Group("/:jobid", func() { m.Group("/:jobid", func() {
m.Get("", reqRepoCloudBrainReader, repo.NotebookShow) m.Get("", reqRepoCloudBrainReader, repo.NotebookShow)
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2) m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2)


Loading…
Cancel
Save