diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 3676e3c56..9dd773c4d 100755 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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())