Skip to content

Commit

Permalink
feat: added HTTP method option for push monitor (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored May 24, 2024
2 parents 1590ca6 + 9ce0911 commit 1100782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/routers/api-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1100782

Please sign in to comment.