Mohammed Nafees 3 anos atrás
pai
commit
275920d451
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      api/server/router/cluster.go

+ 2 - 2
api/server/router/cluster.go

@@ -412,7 +412,7 @@ func getClusterRoutes(
 		createDeploymentEndpoint := factory.NewAPIEndpoint(
 			&types.APIRequestMetadata{
 				Verb:   types.APIVerbCreate,
-				Method: types.HTTPVerbPatch,
+				Method: types.HTTPVerbPost,
 				Path: &types.Path{
 					Parent:       basePath,
 					RelativePath: relPath + "/deployments",
@@ -593,7 +593,7 @@ func getClusterRoutes(
 		// environment.NewFinalizeDeploymentWithErrorsHandler
 		finalizeDeploymentWithErrorsEndpoint := factory.NewAPIEndpoint(
 			&types.APIRequestMetadata{
-				Verb:   types.APIVerbUpdate,
+				Verb:   types.APIVerbCreate,
 				Method: types.HTTPVerbPost,
 				Path: &types.Path{
 					Parent:       basePath,