Skip to content

Commit

Permalink
fix: update endpoints (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi authored Aug 6, 2024
1 parent 2cfce0c commit be51a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/api/kaytu/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CreateApiKeyRequest(accessToken, name string) (*CreateAPIKeyResponse, error
return nil, err
}

req, err := http.NewRequest("POST", "https://api.kaytu.io/kaytu/auth/api/v1/key/create", bytes.NewReader(reqBody))
req, err := http.NewRequest("POST", "https://app.kaytu.io/kaytu/auth/api/v1/key/create", bytes.NewReader(reqBody))
if err != nil {
return nil, fmt.Errorf("[CreateApiKeyRequest]: %v", err)
}
Expand Down Expand Up @@ -55,7 +55,7 @@ func CreateApiKeyRequest(accessToken, name string) (*CreateAPIKeyResponse, error
}

func ListApiKeyRequest(accessToken string) ([]ApiKey, error) {
req, err := http.NewRequest("GET", "https://api.kaytu.io/kaytu/auth/api/v1/keys", nil)
req, err := http.NewRequest("GET", "https://app.kaytu.io/kaytu/auth/api/v1/keys", nil)
if err != nil {
return nil, fmt.Errorf("[ListApiKeyRequest]: %v", err)
}
Expand Down Expand Up @@ -92,7 +92,7 @@ func ListApiKeyRequest(accessToken string) ([]ApiKey, error) {
}

func DeleteApiKeyRequest(accessToken, name string) error {
req, err := http.NewRequest("DELETE", fmt.Sprintf("https://api.kaytu.io/kaytu/auth/api/v1/key/%s/delete", name), nil)
req, err := http.NewRequest("DELETE", fmt.Sprintf("https://app.kaytu.io/kaytu/auth/api/v1/key/%s/delete", name), nil)
if err != nil {
return fmt.Errorf("[DeleteApiKeyRequest]: %v", err)
}
Expand Down

0 comments on commit be51a7d

Please sign in to comment.