Seed from NAS prod snapshot 20260130-190531
All checks were successful
CI / build-and-anchors (push) Successful in 1m25s
SMOKE / smoke (push) Successful in 11s
CI / build-and-anchors (pull_request) Successful in 1m20s

This commit is contained in:
archicratia
2026-01-31 10:51:38 +00:00
commit 60d88939b0
142 changed files with 33443 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import type { APIRoute } from "astro";
import { getCollection } from "astro:content";
export const prerender = true;
export const GET: APIRoute = async () => {
const entries = await getCollection("glossaire");
const index = entries.map((e) => ({
slug: e.slug,
term: e.data.term,
aliases: e.data.aliases ?? [],
definitionShort: e.data.definitionShort,
href: `/glossaire/${e.slug}/`,
}));
return new Response(JSON.stringify(index), {
headers: {
"Content-Type": "application/json; charset=utf-8",
"Cache-Control": "public, max-age=3600",
},
});
};