Remove GET method from bookmark api

master
TZGyn 2 years ago
parent 06516b984f
commit 35b7eb15fe
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -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')

Loading…
Cancel
Save