Files
2026-06-24 14:37:15 +03:00

18 lines
378 B
TypeScript

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'
}
}
);
}