From e300cdacd85470c0927d3734e38f70b74b6f9223 Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Thu, 8 Apr 2021 16:27:58 +0800 Subject: [PATCH] mod route --- routers/api/v1/api.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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())