Parcourir la source

update endpoint for install agent

Alexander Belanger il y a 4 ans
Parent
commit
5235956520
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      api/server/router/cluster.go

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

@@ -477,11 +477,11 @@ func getClusterRoutes(
 		Router:   r,
 	})
 
-	// GET /api/projects/{project_id}/clusters/{cluster_id}/agent/install -> cluster.NewInstallAgentHandler
+	// POST /api/projects/{project_id}/clusters/{cluster_id}/agent/install -> cluster.NewInstallAgentHandler
 	installAgentEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
-			Verb:   types.APIVerbGet,
-			Method: types.HTTPVerbGet,
+			Verb:   types.APIVerbCreate,
+			Method: types.HTTPVerbPost,
 			Path: &types.Path{
 				Parent:       basePath,
 				RelativePath: relPath + "/agent/install",