This commit is contained in:
Julien Froidefond
2025-12-19 09:59:22 +01:00
commit 165928d64e
24 changed files with 5099 additions and 0 deletions

18
app/api/people/route.ts Normal file
View File

@@ -0,0 +1,18 @@
import { NextResponse } from 'next/server';
import { parseCSV } from '@/lib/csv-parser';
import { join } from 'path';
export async function GET() {
try {
const filePath = join(process.cwd(), 'group-dev-ad.csv');
const people = await parseCSV(filePath);
return NextResponse.json(people);
} catch (error) {
console.error('Error parsing CSV:', error);
return NextResponse.json(
{ error: 'Failed to parse CSV file' },
{ status: 500 }
);
}
}