From 7740cac5ce863a41b1deef79d42685505a8cb192 Mon Sep 17 00:00:00 2001 From: yuyuanshifu <747342561@qq.com> Date: Fri, 8 Jan 2021 09:06:51 +0800 Subject: [PATCH] mod router --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 790650a2d..f40b55e2b 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -900,7 +900,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/commit_image", reqRepoCloudBrainWriter, bindIgnErr(auth.CommitImageCloudBrainForm{}), repo.CloudBrainCommitImage) m.Post("/stop", reqRepoCloudBrainWriter, repo.CloudBrainStop) m.Post("/del", reqRepoCloudBrainWriter, repo.CloudBrainDel) - m.Post("/benchmark", reqRepoCloudBrainWriter, repo.CloudBrainBenchmark) + m.Get("/benchmark", reqRepoCloudBrainWriter, repo.CloudBrainBenchmark) }) m.Get("/create", reqRepoCloudBrainWriter, repo.CloudBrainNew) m.Post("/create", reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.CloudBrainCreate)