diff --git a/src/CalendarPage.tsx b/src/CalendarPage.tsx index 951621a..eba826e 100644 --- a/src/CalendarPage.tsx +++ b/src/CalendarPage.tsx @@ -42,7 +42,7 @@ function CalendarPage() { async function getScheduledSessions(buildId: string, date: Date) { const result: any[] = await ky .get( - `https://crm.stream.graff.tech/api/scheduled_sessions/${buildId}?date=${date.toISOString()}` + `https://crm.stream.graff.tech/api/scheduledSessions/${buildId}?date=${date.toISOString()}` ) .json(); @@ -69,7 +69,7 @@ function CalendarPage() { try { const result: any = await ky - .post(`${import.meta.env.VITE_COORD_URL}/scheduled_sessions`, { + .post(`${import.meta.env.VITE_COORD_URL}/scheduledSessions`, { json: { username, name, @@ -128,7 +128,7 @@ function CalendarPage() { }, []); return ( -
@@ -290,7 +290,7 @@ function CalendarPage() { @@ -328,7 +328,7 @@ function CalendarPage() { Подключиться diff --git a/src/ScheduledPage.tsx b/src/ScheduledPage.tsx index 1e06721..8b64166 100644 --- a/src/ScheduledPage.tsx +++ b/src/ScheduledPage.tsx @@ -17,7 +17,7 @@ function ScheduledPage() { try { const result: any = await ky .get( - `${import.meta.env.VITE_CRM_API_URL}/scheduled_sessions/${ + `${import.meta.env.VITE_CRM_API_URL}/scheduledSessions/${ params.sessionId }` ) diff --git a/src/components/SidebarTab2.tsx b/src/components/SidebarTab2.tsx index 3ce0dd1..1518707 100644 --- a/src/components/SidebarTab2.tsx +++ b/src/components/SidebarTab2.tsx @@ -52,7 +52,7 @@ function SidebarTab2() { .get( `${ import.meta.env.VITE_CRM_API_URL - }/scheduled_sessions/companies/${companyId}/builds/${buildId}?date=${format( + }/scheduledSessions/companies/${companyId}/builds/${buildId}?date=${format( selectedDay, "yyyy-MM-dd" )}` @@ -137,10 +137,10 @@ function SidebarTab2() { }, [schedule]); return ( -
+
+
+
{name}
{phone}
{email}
+