From 35b7eb15fe44ca3db5b41c413e8a92af74267597 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 27 Aug 2023 16:14:35 +0800 Subject: [PATCH] Remove GET method from bookmark api --- app/api/bookmark/route.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/api/bookmark/route.ts b/app/api/bookmark/route.ts index 43da5b0..6dab488 100644 --- a/app/api/bookmark/route.ts +++ b/app/api/bookmark/route.ts @@ -6,12 +6,6 @@ import { eq } from 'drizzle-orm' import { cookies } from 'next/headers' import { getUser } from '@/lib/auth' -export const GET = async () => { - const bookmarks = await db.select().from(bookmark) - - return NextResponse.json(bookmarks) -} - export const POST = async (request: NextRequest) => { const body = await request.json() const token = cookies().get('token')