import {
  proxyWorkerRoot,
  requireAuthenticatedUser,
} from '@/lib/agent-worker-proxy';

export const POST = async () => {
  const authenticated = await requireAuthenticatedUser();
  if (!authenticated.ok) return authenticated.response;
  return await proxyWorkerRoot('/cleanup', { method: 'POST' });
};
