Skip to content

Commit ba9eaa8

Browse files
Merge pull request #9 from push-protocol/COMMS-WEBSITE-8-change-notification-analytics-baseURL
COMMS-WEBSITE-8-analytics-notification-baseURL-fixed
2 parents 1574d3a + 4906bc8 commit ba9eaa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const awaitTimeout = (delay) =>
1010

1111
const BACKEND_API_URL = 'https://api.analytics.epns.io/apis/analytics';
1212
const ANALYTICS_API_BASE = 'https://backend.epns.io/apis/v1';
13+
14+
const ANALYTICS_API_BASE_V2 = 'https://backend.epns.io/apis/v2';
15+
1316
// const BACKEND_API_URL = 'https://api.analytics.push.org/apis/analytics';
1417
// const ANALYTICS_API_BASE = 'https://backend.push.org/apis/v1';
1518

@@ -151,7 +154,7 @@ export const getNotifications = async ({
151154
}) => {
152155
try {
153156
const res = await axios.get(
154-
`${ANALYTICS_API_BASE}/analytics/notification`,
157+
`${ANALYTICS_API_BASE_V2}/analytics/notification`,
155158
{
156159
params: {
157160
startDate,

0 commit comments

Comments
 (0)