We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1574d3a + 4906bc8 commit ba9eaa8Copy full SHA for ba9eaa8
src/api/index.ts
@@ -10,6 +10,9 @@ const awaitTimeout = (delay) =>
10
11
const BACKEND_API_URL = 'https://api.analytics.epns.io/apis/analytics';
12
const ANALYTICS_API_BASE = 'https://backend.epns.io/apis/v1';
13
+
14
+const ANALYTICS_API_BASE_V2 = 'https://backend.epns.io/apis/v2';
15
16
// const BACKEND_API_URL = 'https://api.analytics.push.org/apis/analytics';
17
// const ANALYTICS_API_BASE = 'https://backend.push.org/apis/v1';
18
@@ -151,7 +154,7 @@ export const getNotifications = async ({
151
154
}) => {
152
155
try {
153
156
const res = await axios.get(
- `${ANALYTICS_API_BASE}/analytics/notification`,
157
+ `${ANALYTICS_API_BASE_V2}/analytics/notification`,
158
{
159
params: {
160
startDate,
0 commit comments