mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 23:09:39 -05:00
feat: added HTTP method option for push monitor (#1991)
This commit is contained in:
commit
11007823e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user