added event todo list
This commit is contained in:
5
lib/helper/fetchTodos.ts
Normal file
5
lib/helper/fetchTodos.ts
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user