From 5438463f19603bc9be10dc79f54d4e3dc7c128b0 Mon Sep 17 00:00:00 2001 From: wajeht <58354193+wajeht@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:35:40 -0500 Subject: [PATCH] Untrack files in .gitignore --- .gitignore | 2 ++ src/scratch.js | 27 --------------------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 src/scratch.js diff --git a/.gitignore b/.gitignore index 732f0e0..6f17bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,6 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + ./src/scratch.js +src/scratch.js diff --git a/src/scratch.js b/src/scratch.js deleted file mode 100644 index 3f07b71..0000000 --- a/src/scratch.js +++ /dev/null @@ -1,27 +0,0 @@ -async function main() { - try { - const response = await fetch('http://localhost', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'X-API-Key': '42069247355', - }, - body: JSON.stringify({ - id: 69, - message: 'Hello, this is a test message', - details: { - name: 'John Doe', - age: 30, - email: 'john.doe@example.com', - }, - }), - }); - - const data = await response.json(); - console.log(data); - } catch (error) { - console.error('Error:', error); - } -} - -main();