diff --git a/src/lib/api/events.ts b/src/lib/api/events.ts index f1ca2ee..3c6d7ea 100644 --- a/src/lib/api/events.ts +++ b/src/lib/api/events.ts @@ -10,14 +10,14 @@ interface ApiError { detail: string | Array<{ loc: [string, number]; msg: string; type: string }> } -export async function fetchEvents(allWallets = true): Promise { +export async function fetchEvents(): Promise { try { + // Use the new public endpoint that allows access to all events without authentication const response = await fetch( - `${API_BASE_URL}/events/api/v1/events?all_wallets=${allWallets}`, + `${API_BASE_URL}/events/api/v1/events/public`, { headers: { 'accept': 'application/json', - 'X-API-KEY': API_KEY, }, } )