-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {event.title || 'Untitled Event'}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{' '}
-
- {event.participants?.map((user) => (
-
- ))}
-
-
+
+
+
+
+
+
-
-
-
- {session.data?.user?.id === event.organizer.id ? (
-
- ) : null}
+
+
+
+
+
+
+
+
+
+
+
+
-
- {session.data?.user?.id === event.organizer.id ? (
-
- ) : null}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{' '}
+
+ {event.participants?.map((user) => (
+
+ ))}
+
+
+
+
+
+
+ {session.data?.user?.id === event.organizer.id ? (
+
+ ) : null}
+
+
+ {session.data?.user?.id === event.organizer.id ? (
+
+ ) : null}
+
+
-
-
-
+
+
+
);
}
diff --git a/src/app/(main)/events/edit/[eventID]/page.tsx b/src/app/(main)/events/edit/[eventID]/page.tsx
index 42c6e8b..b099f10 100644
--- a/src/app/(main)/events/edit/[eventID]/page.tsx
+++ b/src/app/(main)/events/edit/[eventID]/page.tsx
@@ -9,16 +9,14 @@ export default async function Page({
}) {
const eventID = (await params).eventID;
return (
-
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
);
}
diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx
index 38237f6..69e5be6 100644
--- a/src/app/(main)/home/page.tsx
+++ b/src/app/(main)/home/page.tsx
@@ -22,7 +22,7 @@ export default function Home() {
diff --git a/src/app/api/user/[user]/calendar/route.ts b/src/app/api/calendar/route.ts
similarity index 72%
rename from src/app/api/user/[user]/calendar/route.ts
rename to src/app/api/calendar/route.ts
index 62142e9..440bbd7 100644
--- a/src/app/api/user/[user]/calendar/route.ts
+++ b/src/app/api/calendar/route.ts
@@ -15,7 +15,7 @@ import {
} from '@/app/api/validation';
import { z } from 'zod/v4';
-export const GET = auth(async function GET(req, { params }) {
+export const GET = auth(async function GET(req) {
const authCheck = userAuthenticated(req);
if (!authCheck.continue)
return returnZodTypeCheckedResponse(
@@ -24,7 +24,22 @@ export const GET = auth(async function GET(req, { params }) {
authCheck.metadata,
);
- const dataRaw = Object.fromEntries(new URL(req.url).searchParams);
+ const dataRaw: Record