parse-dashboard-analytics 7.4.4 → 7.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Parse-Dashboard/app.js
CHANGED
|
@@ -1184,7 +1184,7 @@ You have direct access to the Parse database through function calls, so you can
|
|
|
1184
1184
|
});
|
|
1185
1185
|
|
|
1186
1186
|
// Analytics dashboard routes - Only serve custom analytics if analyticsPage is configured
|
|
1187
|
-
app.get('/apps
|
|
1187
|
+
app.get('/apps/:appId/analytics_dashboard', function(req, res) {
|
|
1188
1188
|
console.log('🎯 Analytics dashboard route hit:', req.path, req.url);
|
|
1189
1189
|
|
|
1190
1190
|
if (users && (!req.user || !req.user.isAuthenticated)) {
|
|
@@ -1197,8 +1197,7 @@ You have direct access to the Parse database through function calls, so you can
|
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
1199
|
// Extract app ID from URL
|
|
1200
|
-
const
|
|
1201
|
-
const appId = appIdMatch ? appIdMatch[1] : null;
|
|
1200
|
+
const appId = req.params.appId;
|
|
1202
1201
|
console.log('📱 Extracted app ID:', appId);
|
|
1203
1202
|
|
|
1204
1203
|
// Find the app configuration
|
|
@@ -1240,7 +1239,7 @@ You have direct access to the Parse database through function calls, so you can
|
|
|
1240
1239
|
});
|
|
1241
1240
|
|
|
1242
1241
|
// Alternative analytics dashboard route (with slash instead of underscore)
|
|
1243
|
-
app.get('/apps
|
|
1242
|
+
app.get('/apps/:appId/analytics/dashboard', function(req, res) {
|
|
1244
1243
|
console.log('🎯 Alternative analytics route hit:', req.path, req.url);
|
|
1245
1244
|
|
|
1246
1245
|
if (users && (!req.user || !req.user.isAuthenticated)) {
|
|
@@ -1253,8 +1252,7 @@ You have direct access to the Parse database through function calls, so you can
|
|
|
1253
1252
|
}
|
|
1254
1253
|
|
|
1255
1254
|
// Extract app ID from URL
|
|
1256
|
-
const
|
|
1257
|
-
const appId = appIdMatch ? appIdMatch[1] : null;
|
|
1255
|
+
const appId = req.params.appId;
|
|
1258
1256
|
console.log('📱 Extracted app ID:', appId);
|
|
1259
1257
|
|
|
1260
1258
|
// Find the app configuration
|