22 lines
862 B
TypeScript
22 lines
862 B
TypeScript
// The link preview image of the weekly horoscope page (og:image), drawn from
|
|||
|
|
// the example chart. The page links it with a version (?v=…).
|
||
|
|
import example from "@/content/pelda.json";
|
||
|
|
import { chartCard } from "@/lib/ogCard";
|
||
|
|
import type { ChartResult } from "@/lib/types";
|
||
|
|
|
||
|
|
export async function GET() {
|
||
|
|
return chartCard({
|
||
|
|
chart: example.chart as unknown as ChartResult,
|
||
|
|
timeKnown: true,
|
||
|
|
eyebrow: "HETI HOROSZKÓP",
|
||
|
|
title: "A te heted, nem a csillagjegyedé.",
|
||
|
|
text: "Hétfőnként új, személyes horoszkóp a saját születési képletedből és a hét égboltjából. Ingyenes.",
|
||
|
|
lines: [
|
||
|
|
{ glyph: "☉", label: "A saját képletedből" },
|
||
|
|
{ glyph: "☽", label: "A hét égboltjából" },
|
||
|
|
{ glyph: "☿", label: "Hétfőnként új" },
|
||
|
|
],
|
||
|
|
cacheControl: "public, max-age=86400, s-maxage=604800",
|
||
|
|
});
|
||
|
|
}
|