Changed the serviceaccount route to POST

This commit is contained in:
pb 2025-06-30 17:08:01 +02:00
parent d5e8db60be
commit ad56c42c2f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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})