feat: initialize Prisma schema and scaffold core application modules including auth, blogs, events, and business directories
Some checks failed
Build and Push App / build (push) Failing after 47s
Some checks failed
Build and Push App / build (push) Failing after 47s
This commit is contained in:
11
app/api/settings/route.ts
Normal file
11
app/api/settings/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { getSiteSettings } from '../../../lib/settings';
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
const settings = await getSiteSettings();
|
||||
return NextResponse.json(settings);
|
||||
} catch (error) {
|
||||
return NextResponse.json({ error: 'Failed to fetch settings' }, { status: 500 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user