13 lines
365 B
TypeScript
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 });
|
|
}
|
|
}
|