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:", + }) +});