feat: connect Request Demo form to TapTrack Hub API

Replace Formspree placeholder with live POST to taptrack-hub.juankibin.space/api/demo-requests so all inbound demo leads are stored in the Hub.
This commit is contained in:
kevin-asprec
2026-03-17 09:50:10 +08:00
parent fc703c8fc7
commit 847a0d463a

View File

@@ -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 }),