From ad56c42c2fe4b084a762e16cd22bd56bff4baed1 Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 30 Jun 2025 17:08:01 +0200 Subject: [PATCH] Changed the serviceaccount route to POST --- controllers/minio.go | 2 +- routers/commentsRouter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/minio.go b/controllers/minio.go index 7cbb15d..cbec3d5 100644 --- a/controllers/minio.go +++ b/controllers/minio.go @@ -18,7 +18,7 @@ type MinioController struct { // @Success 200 // @Param executions path string true "The executionsID of the execution" // @Param minioId path string true "The ID of the Minio you want to reach" -// @router /serviceaccount/:minioId/:executions +// @router /serviceaccount/:minioId/:executions [post] func (m *MinioController) CreateServiceAccount() { _, peerID, _ := oclib.ExtractTokenInfo(*m.Ctx.Request) // This part is solely for dev purposes and should be removed once test on diff --git a/routers/commentsRouter.go b/routers/commentsRouter.go index 75e6303..c6f63cd 100644 --- a/routers/commentsRouter.go +++ b/routers/commentsRouter.go @@ -200,7 +200,7 @@ func init() { beego.ControllerComments{ Method: "CreateServiceAccount", Router: `/serviceaccount/:minioId/:executions`, - AllowHTTPMethods: []string{"get"}, + AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Filters: nil, Params: nil})