|
|
@@ -857,8 +857,10 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("/:jobid", repo.GetModelArtsNotebook) |
|
|
|
}) |
|
|
|
m.Group("/train-job", func() { |
|
|
|
m.Get("/:jobid", repo.GetModelArtsTrainJob) |
|
|
|
m.Get("/log", repo.TrainJobGetLog) |
|
|
|
m.Group("/:jobid", func() { |
|
|
|
m.Get("", repo.GetModelArtsTrainJob) |
|
|
|
m.Get("/log", repo.TrainJobGetLog) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, reqRepoReader(models.UnitTypeCloudBrain)) |
|
|
|
}, repoAssignment()) |
|
|
|