import { fetchPublicSettings } from '@/lib/api';

export const dynamic = 'force-dynamic';

export async function GET() {
  const settings = await fetchPublicSettings();
  return Response.json(
    {
      settings: Object.entries(settings).map(([key, value]) => ({ key, value }))
    },
    {
      headers: {
        'Cache-Control': 'no-store, max-age=0'
      }
    }
  );
}
