added event todo list

This commit is contained in:
2025-06-29 11:00:52 -04:00
parent c7c121e23d
commit 11a0bb00e3
11 changed files with 342 additions and 63 deletions

5
lib/helper/fetchTodos.ts Normal file
View File

@@ -0,0 +1,5 @@
export async function fetchEventTodos(eventId: string) {
const res = await fetch(`/api/events/${eventId}/todo`)
if (!res.ok) throw new Error('Failed to fetch todos')
return await res.json()
}