Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Aug 7, 2024
1 parent f02f53f commit 9d1e81d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/(static)/events/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import events from '@/data/events';
export async function GET(req: NextRequest) {
const { searchParams } = req.nextUrl;

console.log('******TRIGGERS GET EVENTS*****');

const filters: Partial<Event> = {
location: searchParams.get('location') || undefined,
date: searchParams.get('date') || undefined,
Expand All @@ -18,5 +20,7 @@ export async function GET(req: NextRequest) {
past: eventsService.getPastEvents(),
};

console.log({ data });

return NextResponse.json({ data });
}

0 comments on commit 9d1e81d

Please sign in to comment.