diff --git a/src/app/calendar/calendar.tsx b/src/app/calendar/calendar.tsx index 340e2d6..59a441b 100644 --- a/src/app/calendar/calendar.tsx +++ b/src/app/calendar/calendar.tsx @@ -140,7 +140,7 @@ export default function Calendar({ onClick={() => { axios .delete( - `/api/posts`, + `https://klayrion.netlify.app/api/posts`, { params: { id: sessionId, diff --git a/src/app/calendar/page.tsx b/src/app/calendar/page.tsx index 0d23597..59b3a41 100644 --- a/src/app/calendar/page.tsx +++ b/src/app/calendar/page.tsx @@ -15,7 +15,7 @@ export default function CalendarApp() { const [events, setEvents] = useState([]); useEffect(() => { - axios.get(`/api/posts/?id=${sessionId}`).then((response) => { + axios.get(`https://klayrion.netlify.app/api/posts/?id=${sessionId}`).then((response) => { const v = response.data.schedules.map((e: any) => ({ date: parse(e.scheduled, 'yyyy-MM-dd HH:mm', new Date()), platforms: e.platforms, diff --git a/src/app/calendar/postDialog.tsx b/src/app/calendar/postDialog.tsx index 9928bf0..5c17c2f 100644 --- a/src/app/calendar/postDialog.tsx +++ b/src/app/calendar/postDialog.tsx @@ -126,7 +126,7 @@ export default function PostDialog({