mirror of
https://github.com/prdlk/website.git
synced 2026-08-02 17:31:41 +00:00
feat(astro): add API routes for llms full and index text exports
This commit is contained in:
@@ -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" },
|
||||||
|
});
|
||||||
@@ -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" },
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user