Skip to content

Commit

Permalink
Merge pull request #58 from HackDavis/feat/better-routing
Browse files Browse the repository at this point in the history
unprotected judge route
  • Loading branch information
Austin2Shih authored Apr 18, 2024
2 parents 099c266 + f534c8a commit 3b32853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/(api)/_datalib/judges/getJudge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions app/(api)/api/judges/route.ts
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit 3b32853

Please sign in to comment.