Update code

This commit is contained in:
UltraLionFr
2025-08-20 14:14:33 +02:00
parent 174cf5ef60
commit 0c1a0d74d7
53 changed files with 3830 additions and 373 deletions
+10
View File
@@ -0,0 +1,10 @@
import { getDashboardStats } from '@/lib/stats';
import { getServerSession } from 'next-auth';
import { NextResponse } from 'next/server';
import { authOptions } from '../auth/[...nextauth]/route';
export async function GET() {
const session = await getServerSession(authOptions);
const stats = await getDashboardStats(session?.user?.id);
return NextResponse.json(stats);
}