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

const POST = async ({ params, request }) => {
  const { agent } = params;
  const body = await request.json().catch(() => ({}));
  await trpc.tests.runTests.mutate({ agent, scope: body.scope });
  return new Response(JSON.stringify({ ok: true }), {
    headers: { "content-type": "application/json" }
  });
};

export { POST };
//# sourceMappingURL=_server.ts-Bv3v0UM3.js.map
