import { listMachinetypes } from "@/server/repo";

export async function GET() {
  const data = await listMachinetypes();
  return new Response(JSON.stringify({ items: data }), {
    headers: {
      "content-type": "application/json",
      "cache-control": "public, max-age=0, s-maxage=3600, stale-while-revalidate=86400",
    },
  });
}

export const runtime = "nodejs";
