Initial commit - SaveTheMoment Atlas Basis-Setup

This commit is contained in:
Dennis Forte
2025-11-12 20:21:32 +01:00
commit 0b6e429329
167 changed files with 30843 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { NextResponse } from 'next/server';
import { prisma } from '@/lib/prisma';
export async function GET() {
try {
const locations = await prisma.location.findMany({
where: {
active: true,
},
orderBy: {
name: 'asc',
},
});
return NextResponse.json({ locations });
} catch (error) {
console.error('Locations fetch error:', error);
return NextResponse.json(
{ error: 'Internal server error' },
{ status: 500 }
);
}
}