theming and structure

This commit is contained in:
briannelson95
2025-06-23 16:38:52 -04:00
parent 1ec8d444f5
commit 23c8f468fe
14 changed files with 123 additions and 109 deletions

View File

@@ -1,9 +1,10 @@
import { auth } from '@/lib/auth';
import { getServerSession } from 'next-auth'
import { authOptions } from '@/app/api/auth/[...nextauth]/route'
import { mutations } from '@/lib/mutations';
import { NextRequest, NextResponse } from 'next/server';
export async function POST(req: NextRequest) {
const session = await auth();
const session = await getServerSession(authOptions)
if (!session?.user) return new NextResponse('Unauthorized', { status: 401 });
const body = await req.json();