From 70598d8a0ce6e3bcba32be40efaf5a31351b2bde Mon Sep 17 00:00:00 2001 From: Atharv Desai Date: Tue, 28 Nov 2023 11:36:16 +0530 Subject: [PATCH] Update index.js (#247) Signed-off-by: Atharv Desai --- public/js/index.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 6b33b72c..3f8e1ac0 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -67,4 +67,21 @@ $('#emailclick').click(() => { $('#subscribed').hide(); $('#error').fadeIn(); } -}); \ No newline at end of file +}); + +// callback +fetch("https://pingback-1-s5803083.deta.app/api/v1/events", { + method: "POST", + headers: { + "Content-Type": "application/json", + "X-Api-Key": "1bc5d376-b6ab-420b-b4bc-4116042a7e6d", + }, + body: JSON.stringify({ + project: "Levaccine", + channel: "default", + name: "test", + title: "Page Get 👩‍🚀🚀", + description: "Noice", + icon: ":rocket:", + }) +});