Files
tt-booking/app/api/config/route.ts
T
2025-09-26 22:16:34 +01:00

13 lines
365 B
TypeScript

import { NextResponse } from 'next/server';
import { getAppConfig } from '@/lib/app-config';
export async function GET() {
try {
const config = await getAppConfig();
return NextResponse.json(config);
} catch (error) {
console.error('Error fetching app config:', error);
return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
}
}