Mohammed Nafees 3 лет назад
Родитель
Сommit
275920d451
1 измененных файлов с 2 добавлено и 2 удалено
  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,