Mocks erstellt für API für Entwicklungsumgebung
This commit is contained in:
@@ -7,7 +7,7 @@ export const fetchAllTDMDataFromServer = async (): Promise<any[]> => {
|
||||
|
||||
const slotRequests = Array.from({ length: 32 }, (_, i) => {
|
||||
const url = isDev
|
||||
? `/apiMockData/TDM/slot${i}.json` // ✅ Entwicklung: aus public-Ordner
|
||||
? `/device-cgi-simulator/TDM/slot${i}.json` // ✅ Entwicklung: aus public-Ordner
|
||||
: `${window.location.origin}/CPL?Service/empty.acp&TDM=${i}`; // ✅ Produktion
|
||||
|
||||
return fetch(url)
|
||||
|
||||
Reference in New Issue
Block a user