Skip to content

Commit

Permalink
Fix plugin schema path
Browse files Browse the repository at this point in the history
  • Loading branch information
scastrianni committed Jan 6, 2024
1 parent 9dcd891 commit 0e4757b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions konnect/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"strings"
)

const (
Expand Down Expand Up @@ -109,10 +108,5 @@ func (c *Client) RequestPath(isRegion bool, path string) string {
} else {
host = GlobalRegion
}
//Hack for plugin schemas until Konnect API is fixed
if strings.Contains(path, "schemas") {
return fmt.Sprintf("https://%s.%s/konnect-api/api/%s", host, KonnectDomain, path)
} else {
return fmt.Sprintf("https://%s.%s/v2/%s", host, KonnectDomain, path)
}
return fmt.Sprintf("https://%s.%s/v2/%s", host, KonnectDomain, path)
}

0 comments on commit 0e4757b

Please sign in to comment.