Просмотр исходного кода

Merge branch 'belanger/por-160-pod-events-backend' of github.com:porter-dev/porter into nico/alert-events-frontend-implementation

jnfrati 4 лет назад
Родитель
Сommit
81f5608b77
1 измененных файлов с 3 добавлено и 3 удалено
  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",