mockApi erstellt, um die Eingabe zu simulieren, aber funktioniert nocht nicht ganz
This commit is contained in:
14
services/mockApi/fetchGisSystemStatic.js
Normal file
14
services/mockApi/fetchGisSystemStatic.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user