From f534c8a000d8f76c32bedae3c31e3bc046a82f58 Mon Sep 17 00:00:00 2001 From: Austin Shih Date: Thu, 18 Apr 2024 13:19:40 -0700 Subject: [PATCH] unprotected judge route --- app/(api)/_datalib/judges/getJudge.ts | 2 -- app/(api)/api/judges/route.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/(api)/_datalib/judges/getJudge.ts b/app/(api)/_datalib/judges/getJudge.ts index 7fb55ee8..1007c3f7 100644 --- a/app/(api)/_datalib/judges/getJudge.ts +++ b/app/(api)/_datalib/judges/getJudge.ts @@ -34,8 +34,6 @@ export const GetManyJudges = async (query: object = {}) => { const db = await getDatabase(); const judge = await db.collection('judges').find(query).toArray(); - console.log(judge); - return NextResponse.json( { ok: true, body: judge, error: null }, { status: 200 } diff --git a/app/(api)/api/judges/route.ts b/app/(api)/api/judges/route.ts index 7d1ebaf5..24e06b58 100644 --- a/app/(api)/api/judges/route.ts +++ b/app/(api)/api/judges/route.ts @@ -1,8 +1,8 @@ import authenticated from '@utils/authentication/authenticated'; import { POST as post } from './post'; -import { GET as get } from './get'; +import { GET } from './get'; const POST = authenticated(post); -const GET = authenticated(get); +// const GET = authenticated(get); export { POST, GET };