@quintype/framework 7.18.2-webengage.0 → 7.18.2-webengage.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/routes.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.18.2-webengage.0",
3
+ "version": "7.18.2-webengage.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
package/server/routes.js CHANGED
@@ -427,8 +427,9 @@ exports.isomorphicRoutes = function isomorphicRoutes(
427
427
 
428
428
  app.post("/register-fcm-topic", bodyParser.json(), withConfig(registerFCMTopic, { publisherConfig, fcmServerKey }));
429
429
 
430
- app.post("/push-notification", (req, res) => {
431
- res.json({ status: "webengage-notified" });
430
+ app.post("/webengage-api", bodyParser.json(), (req, res) => {
431
+ console.log("hit /webengage-api", req.body);
432
+ res.json({ status: "webengage-notified", data: req.body });
432
433
  });
433
434
 
434
435
  if (manifestFn) {