Skip to content

Commit a5ebb1c

Browse files
authored
Merge pull request #65 from snyk-tech-services/develop
Release changes
2 parents f721f42 + 6f5fff3 commit a5ebb1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/request/requestManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ interface RequestsManagerParams {
3636
}
3737

3838
function getRESTAPI(endpoint: string): string {
39-
const apiData = new URL(endpoint);
4039
// e.g 'https://api.snyk.io/rest/'
40+
const apiData = new URL(endpoint.replace('app.', ''));
41+
4142
return new URL(`${apiData.protocol}//api.${apiData.host}/rest`).toString();
4243
}
4344

0 commit comments

Comments
 (0)