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:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user