feat: APIs erstellt für Systemspannungen

This commit is contained in:
ISA
2025-07-03 11:48:52 +02:00
parent 521bd7ea93
commit a0e8e47fae
26 changed files with 582 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
export const fetchSystemspannung98VminusService = async (
typ: "DIA0" | "DIA1" | "DIA2"
) => {
try {
const res = await fetch(
`/api/cpl/getSystemspannung98VminusHandler?typ=${typ}`
);
if (!res.ok) throw new Error("Fehler beim Abrufen");
return await res.json();
} catch (err) {
console.error("❌ Fehler in fetchSystemspannung98VminusService:", err);
return null;
}
};