import type { APIRoute } from "astro";

const SITE = "https://rubis.pro";

export const GET: APIRoute = () => {
  const txt = `User-agent: *
Allow: /

Sitemap: ${SITE}/sitemap.xml
`;

  return new Response(txt, {
    status: 200,
    headers: {
      "Content-Type": "text/plain; charset=utf-8",
      "Cache-Control": "public, max-age=3600",
    },
  });
};
