fix: update some examples

This commit is contained in:
Stefan Ottosson
2024-05-23 17:42:36 +02:00
parent 1ac5696463
commit b2ede38269
2 changed files with 4 additions and 2 deletions

View File

@@ -1,9 +1,10 @@
// Supports: Node.js >= 18, Deno, Bun
const pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping=";
const interval = 60;
const method = "GET";
const push = async () => {
await fetch(pushURL);
await fetch(pushURL, { method });
console.log("Pushed!");
};