Skip to content

Commit

Permalink
Merge pull request #65 from snyk-tech-services/develop
Browse files Browse the repository at this point in the history
Release changes
  • Loading branch information
mathild3r authored Jul 1, 2022
2 parents f721f42 + 6f5fff3 commit a5ebb1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/request/requestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ interface RequestsManagerParams {
}

function getRESTAPI(endpoint: string): string {
const apiData = new URL(endpoint);
// e.g 'https://api.snyk.io/rest/'
const apiData = new URL(endpoint.replace('app.', ''));

return new URL(`${apiData.protocol}//api.${apiData.host}/rest`).toString();
}

Expand Down

0 comments on commit a5ebb1c

Please sign in to comment.