mockApi erstellt, um die Eingabe zu simulieren, aber funktioniert nocht nicht ganz

This commit is contained in:
ISA
2025-03-05 12:37:08 +01:00
parent 3a21abd4bb
commit 82001a4beb
20 changed files with 294 additions and 763 deletions

View File

@@ -0,0 +1,14 @@
export const fetchGisSystemStatic = async (url, setGisSystemStatic, setGisSystemStaticLoaded) => {
console.log("⚠️ Mock-API: fetchGisSystemStatic wird verwendet!");
const mockData = {
Systems: [
{ IdSystem: 1, Name: "System A", Allow: 1 },
{ IdSystem: 2, Name: "System B", Allow: 0 },
{ IdSystem: 3, Name: "System C", Allow: 1 },
],
};
setGisSystemStatic(mockData.Systems);
setGisSystemStaticLoaded(true);
};