mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 17:12:19 +02:00
This commit is contained in:
@@ -2,7 +2,7 @@ import { useState, useEffect, useRef } from "react";
|
||||
import { motion } from "framer-motion";
|
||||
import { z } from "zod";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { WEBHOOK_URL } from "@/data/event-data";
|
||||
import { WEBHOOK_URL, WEBHOOK_SECRET } from "@/data/event-data";
|
||||
import { CheckCircle, Loader2, AlertCircle, Search } from "lucide-react";
|
||||
|
||||
/**
|
||||
@@ -135,6 +135,10 @@ const BookingSection = () => {
|
||||
console.log("[Booking] Sending to:", WEBHOOK_URL);
|
||||
const res = await fetch(WEBHOOK_URL, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-Webhook-Secret": WEBHOOK_SECRET,
|
||||
},
|
||||
body: JSON.stringify(result.data),
|
||||
});
|
||||
console.log("[Booking] Response status:", res.status);
|
||||
|
||||
Reference in New Issue
Block a user