Browse Source

fix-bug

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

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

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

m.Group("/modelarts", 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)
m.Group("/:jobid", func() {
m.Get("", reqRepoCloudBrainReader, repo.NotebookShow)
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug)
m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2)
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.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsNotebookForm{}), repo.Notebook2Create)
})

m.Group("/train-job", func() {


Loading…
Cancel
Save