import type { APIRoute } from "astro";
import { card } from "../lib/og";
import { HOME_DESCRIPTION } from "../lib/site";

export const GET: APIRoute = async () => {
  const png = await card({ icon: "hydrant", title: "hydrant docs", blurb: HOME_DESCRIPTION });
  return new Response(new Uint8Array(png), { headers: { "content-type": "image/png" } });
};
