feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s

This commit is contained in:
2026-04-18 22:10:19 +02:00
parent 6ec1a3ae84
commit 3e2063e4fa
89 changed files with 4405 additions and 967 deletions

View File

@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server';
import prisma from '@/lib/prisma';
export async function GET() {
try {
const countries = await prisma.country.findMany({
where: { isActive: true },
orderBy: { name: 'asc' }
});
return NextResponse.json(countries);
} catch (error) {
console.error('GET /api/countries error:', error);
return NextResponse.json({ error: 'Erreur serveur' }, { status: 500 });
}
}