diff --git a/server/routers/api-router.js b/server/routers/api-router.js index b63b5123b..9c572f686 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -44,9 +44,8 @@ router.get("/api/entry-page", async (request, response) => { response.json(result); }); -router.get("/api/push/:pushToken", async (request, response) => { +router.all("/api/push/:pushToken", async (request, response) => { try { - let pushToken = request.params.pushToken; let msg = request.query.msg || "OK"; let ping = parseFloat(request.query.ping) || null;