Skip to content

Commit 66a3dc0

Browse files
change routes
1 parent e38b0e7 commit 66a3dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/codefresh/gitops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func newGitopsAPI(codefresh *codefresh) GitopsAPI {
131131
func (a *gitops) CreateEnvironment(name string, project string, application string, integration string) error {
132132
_, err := a.codefresh.requestAPI(&requestOptions{
133133
method: "POST",
134-
path: "/api/environments-v2",
134+
path: "/api/gitops/application",
135135
body: &EnvironmentPayload{
136136
Version: "1.0",
137137
Metadata: EnvironmentMetadata{
@@ -184,7 +184,7 @@ func (a *gitops) GetEnvironments() ([]CFEnvironment, error) {
184184
var result MongoCFEnvWrapper
185185
resp, err := a.codefresh.requestAPI(&requestOptions{
186186
method: "GET",
187-
path: "/api/environments-v2?plain=true&isEnvironment=false",
187+
path: "/api/gitops/application?plain=true&isEnvironment=false",
188188
})
189189
if err != nil {
190190
return nil, err

0 commit comments

Comments
 (0)