feat: implement home page, business directory, and administrative management features with updated schema and API routes
Some checks failed
Build and Push App / build (push) Failing after 51s

This commit is contained in:
2026-04-23 14:40:50 +02:00
parent 88e4c13b9f
commit e6310f30de
23 changed files with 1124 additions and 222 deletions

View File

@@ -0,0 +1,14 @@
import { NextResponse } from 'next/server';
import { prisma } from '@/lib/prisma';
export async function GET() {
try {
const categories = await prisma.businessCategory.findMany({
where: { isActive: true },
orderBy: { name: 'asc' }
});
return NextResponse.json(categories);
} catch (error) {
return NextResponse.json({ error: 'Failed to fetch categories' }, { status: 500 });
}
}