feat: added HTTP method option for push monitor (#1991)

This commit is contained in:
Frank Elsinga 2024-05-24 10:26:58 +02:00 committed by GitHub
commit 11007823e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;