1
0

feat: Added viewer

This commit is contained in:
2026-02-12 17:45:47 +01:00
parent 5ac84e3690
commit cea8cdf4ee
44 changed files with 16005 additions and 9 deletions

17
viewer/lib/api.ts Normal file
View File

@@ -0,0 +1,17 @@
import { SubstitutionData } from "./types";
export async function getData(): Promise<SubstitutionData | null> {
try {
const res = await fetch('http://localhost:3000/versioned/v3', {
next: { revalidate: 60 },
});
if (!res.ok) {
return null;
}
return res.json();
} catch {
return null;
}
}