Skip to content

Commit 352f16c

Browse files
committed
update web api route
1 parent ba2927f commit 352f16c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

__test__/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import { server } from '__test__/support/mocks/server';
6262
import { http, HttpResponse } from 'msw';
6363

6464
server.use(
65-
http.get('https://api.onesignal.com/v1/notifications', () =>
65+
http.get('https://api.onesignal.com/notifications', () =>
6666
HttpResponse.json({ result: {}, status: 200 }),
6767
),
6868
);

src/shared/managers/SdkEnvironment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ describe('SdkEnvironment', () => {
6464
// production
6565
expect(
6666
SdkEnvironment.getOneSignalApiUrl(EnvironmentKind.Production).toString(),
67-
).toBe('https://onesignal.com/api/v1');
67+
).toBe('https://api.onesignal.com/');
6868
});
6969
});

src/shared/managers/SdkEnvironment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default class SdkEnvironment {
9898
case EnvironmentKind.Staging:
9999
return new URL(`https://${apiOrigin}/api/v1`);
100100
case EnvironmentKind.Production:
101-
return new URL('https://onesignal.com/api/v1');
101+
return new URL('https://api.onesignal.com');
102102
default:
103103
throw new InvalidArgumentError(
104104
'buildEnv',

0 commit comments

Comments
 (0)