diff --git a/script/worker.js b/script/worker.js index a7e45ac..5f64959 100644 --- a/script/worker.js +++ b/script/worker.js @@ -13,6 +13,14 @@ export default { return json({ e: "loop detected" }, 508); } + if (request.method == "GET") { + return json({ e: "Relay is Active." }, 200); + } + + if (request.method !== "POST") { + return json({ e: "Method not allowed." }, 405); + } + const req = await request.json(); if (!req.u) {