Skip to content

Commit

Permalink
Merge pull request #4 from ADorigi/fix/update-api-endpoint
Browse files Browse the repository at this point in the history
fix: updated api endpoint
  • Loading branch information
ADorigi authored Sep 15, 2024
2 parents b974462 + 9ee24d5 commit 8e35162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmd/get/benchmarks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ package get
import (
"encoding/json"
"fmt"
"github.com/adorigi/opengovernance/pkg/output/tables"
"io"
"net/http"

"github.com/adorigi/opengovernance/pkg/output/tables"

"github.com/adorigi/opengovernance/pkg/config"
"github.com/adorigi/opengovernance/pkg/request"
"github.com/adorigi/opengovernance/pkg/types"
Expand Down Expand Up @@ -53,7 +54,7 @@ to quickly create a Cobra application.`,
configuration.ApiKey,
configuration.ApiEndpoint,
"POST",
"main/compliance/api/v2/benchmarks",
"main/compliance/api/v3/benchmarks",
payload,
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/get/controls.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ to quickly create a Cobra application.`,
configuration.ApiKey,
configuration.ApiEndpoint,
"POST",
"main/compliance/api/v2/controls",
"main/compliance/api/v3/controls",
payload,
)
if err != nil {
Expand Down

0 comments on commit 8e35162

Please sign in to comment.