mockApi erstellt, um die Eingabe zu simulieren, aber funktioniert nocht nicht ganz
This commit is contained in:
13
services/mockApi/fetchDeviceNameById.js
Normal file
13
services/mockApi/fetchDeviceNameById.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export const fetchDeviceNameById = async (idLD) => {
|
||||
console.log("⚠️ Mock-API: fetchDeviceNameById wird verwendet!");
|
||||
|
||||
// Simulierte Rückgabe basierend auf der ID (du kannst hier mehrere Fälle abdecken)
|
||||
const mockData = {
|
||||
50922: "CPL Ismael",
|
||||
50950: "LTEModem",
|
||||
50951: "GMA ISA",
|
||||
// hier kannst du beliebig weitere hinzufügen, wenn du möchtest
|
||||
};
|
||||
|
||||
return mockData[idLD] || "Unbekanntes Gerät";
|
||||
};
|
||||
Reference in New Issue
Block a user