import { t as trpc } from './trpc-client-Bucti7HD.js';
import '@trpc/client';

const GET = async ({ params }) => {
  const cfg = await trpc.tests.config.query({ agent: params.agent });
  return new Response(JSON.stringify(cfg), { headers: { "content-type": "application/json" } });
};
const PATCH = async ({ params, request }) => {
  await trpc.tests.updateConfig.mutate({ agent: params.agent, cfg: await request.json() });
  return new Response(JSON.stringify({ ok: true }), {
    headers: { "content-type": "application/json" }
  });
};

export { GET, PATCH };
//# sourceMappingURL=_server.ts-Co08lZmV.js.map
