From 291dfb079fa8908ada448878e054f7537f5176b6 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:20:15 -0400 Subject: [PATCH] Updated API Route --- app/api/liveblocks-auth/route.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/api/liveblocks-auth/route.ts b/app/api/liveblocks-auth/route.ts index 98a2676..1724c95 100644 --- a/app/api/liveblocks-auth/route.ts +++ b/app/api/liveblocks-auth/route.ts @@ -4,10 +4,10 @@ import { auth } from '@clerk/nextjs/server'; const liveblocks = new Liveblocks({ secret: process.env.LIVEBLOCKS_SECRET_DEV_API_KEY!, -}); +}); */ export async function POST(req: Request) { - const { user } = useUser(); + /* const { user } = useUser(); const { orgId } = auth(); if (!orgId || !user) return new Response('Unauthorized', { status: 401 }); @@ -23,5 +23,6 @@ export async function POST(req: Request) { // Authorize the user and return the result const { status, body } = await session.authorize(); - return new Response(body, { status }); -} */ + return new Response(body, { status }); */ + return new Response('Not implemented', { status: 501 }); +}