mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
Updated API Route
This commit is contained in:
parent
73f86f602f
commit
291dfb079f
1 changed files with 5 additions and 4 deletions
|
@ -4,10 +4,10 @@ import { auth } from '@clerk/nextjs/server';
|
||||||
|
|
||||||
const liveblocks = new Liveblocks({
|
const liveblocks = new Liveblocks({
|
||||||
secret: process.env.LIVEBLOCKS_SECRET_DEV_API_KEY!,
|
secret: process.env.LIVEBLOCKS_SECRET_DEV_API_KEY!,
|
||||||
});
|
}); */
|
||||||
|
|
||||||
export async function POST(req: Request) {
|
export async function POST(req: Request) {
|
||||||
const { user } = useUser();
|
/* const { user } = useUser();
|
||||||
const { orgId } = auth();
|
const { orgId } = auth();
|
||||||
|
|
||||||
if (!orgId || !user) return new Response('Unauthorized', { status: 401 });
|
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
|
// Authorize the user and return the result
|
||||||
const { status, body } = await session.authorize();
|
const { status, body } = await session.authorize();
|
||||||
return new Response(body, { status });
|
return new Response(body, { status }); */
|
||||||
} */
|
return new Response('Not implemented', { status: 501 });
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue