From e871cb51df85e7b19eb0e70ec7f1cc883b292839 Mon Sep 17 00:00:00 2001 From: Austin Shih Date: Thu, 18 Apr 2024 13:27:51 -0700 Subject: [PATCH] reverted debug changes --- app/(api)/api/judges/route.ts | 4 ++-- app/(api)/auth/register/route.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/(api)/api/judges/route.ts b/app/(api)/api/judges/route.ts index 24e06b5..7d1ebaf 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 } from './get'; +import { GET as get } from './get'; const POST = authenticated(post); -// const GET = authenticated(get); +const GET = authenticated(get); export { POST, GET }; diff --git a/app/(api)/auth/register/route.ts b/app/(api)/auth/register/route.ts index dd3cbd5..a7a8dff 100644 --- a/app/(api)/auth/register/route.ts +++ b/app/(api)/auth/register/route.ts @@ -26,7 +26,6 @@ export async function POST(request: NextRequest) { if (d) { const dd = atob(d); const parsed = JSON.parse(dd); - console.log('HELLO'); body['email'] = parsed?.email ?? body.email; body['name'] = parsed?.name ?? body.name; body['specialty'] = parsed?.specialty ?? body.specialty;