diff --git a/src/components/ContactSection.vue b/src/components/ContactSection.vue index b00f754..c9249ae 100644 --- a/src/components/ContactSection.vue +++ b/src/components/ContactSection.vue @@ -13,7 +13,7 @@ const bulletPoints = [ '✓ Demo of the live system before you commit', ] -const FORMSPREE_URL = 'https://formspree.io/f/YOUR_FORM_ID' +const HUB_API_URL = 'https://taptrack-hub.juankibin.space/api/demo-requests' async function handleSubmit() { error.value = '' @@ -23,7 +23,7 @@ async function handleSubmit() { } submitting.value = true try { - const res = await fetch(FORMSPREE_URL, { + const res = await fetch(HUB_API_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, body: JSON.stringify({ school: form.value.school, contact: form.value.contact, phone: form.value.phone }),