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

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