import { json } from '@sveltejs/kit';

export function GET({ setHeaders, cookies }) {
	setHeaders({ 'cache-control': 'public, max-age=4', age: '2' });

	const count = +(cookies.get('cache-control-force-count') ?? 0);

	return json({ count });
}

export function POST() {
	return new Response();
}
