feat(astro): add API routes for llms full and index text exports

This commit is contained in:
Prad Nukala
2026-07-11 23:37:47 -04:00
parent 215932abb1
commit 69acc1eb36
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import type { APIRoute } from "astro";
import { buildLlmsFull } from "@/data/llms";
export const GET: APIRoute = async () =>
new Response(await buildLlmsFull(), {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});
+7
View File
@@ -0,0 +1,7 @@
import type { APIRoute } from "astro";
import { buildLlmsIndex } from "@/data/llms";
export const GET: APIRoute = async () =>
new Response(await buildLlmsIndex(), {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});