Changed the serviceaccount route to POST
This commit is contained in:
parent
d5e8db60be
commit
ad56c42c2f
@ -18,7 +18,7 @@ type MinioController struct {
|
|||||||
// @Success 200
|
// @Success 200
|
||||||
// @Param executions path string true "The executionsID of the execution"
|
// @Param executions path string true "The executionsID of the execution"
|
||||||
// @Param minioId path string true "The ID of the Minio you want to reach"
|
// @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() {
|
func (m *MinioController) CreateServiceAccount() {
|
||||||
_, peerID, _ := oclib.ExtractTokenInfo(*m.Ctx.Request)
|
_, peerID, _ := oclib.ExtractTokenInfo(*m.Ctx.Request)
|
||||||
// This part is solely for dev purposes and should be removed once test on
|
// This part is solely for dev purposes and should be removed once test on
|
||||||
|
@ -200,7 +200,7 @@ func init() {
|
|||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "CreateServiceAccount",
|
Method: "CreateServiceAccount",
|
||||||
Router: `/serviceaccount/:minioId/:executions`,
|
Router: `/serviceaccount/:minioId/:executions`,
|
||||||
AllowHTTPMethods: []string{"get"},
|
AllowHTTPMethods: []string{"post"},
|
||||||
MethodParams: param.Make(),
|
MethodParams: param.Make(),
|
||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
Loading…
Reference in New Issue
Block a user