import { NextResponse } from 'next/server';
import { getThemeSettings } from '@theme/data/server/theme';

export async function GET() {
  try {
    const settings = await getThemeSettings();
    return NextResponse.json(settings);
  } catch (error) {
    console.error('Error in theme-settings API:', error);
    return NextResponse.json({}, { status: 500 });
  }
}
