Mocks erstellt für API für Entwicklungsumgebung

This commit is contained in:
ISA
2025-06-20 13:41:07 +02:00
parent 01d292e72f
commit 0388512f51
727 changed files with 3443 additions and 1948994 deletions

View File

@@ -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)

View File

@@ -4,7 +4,7 @@ export const fetchAllTDRChartDataFromServer = async (): Promise<any[]> => {
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
const basePath = isDev
? "/apiMockData/LastTDR/jsonDatei"
? "/device-cgi-simulator/LastTDR/jsonDatei"
: "/CPL?/CPL/LastTDR";
const fileNames = Array.from({ length: 32 }, (_, i) => `slot${i}.json`);

View File

@@ -4,7 +4,7 @@ const getTDRReferenceBasePath = () => {
if (typeof window !== "undefined") {
const env = process.env.NEXT_PUBLIC_NODE_ENV;
return env === "development"
? "/apiMockData/tdr-reference-curves"
? "/device-cgi-simulator/tdr-reference-curves"
: "/CPL?/CPL/tdr-reference-curves";
}
return "";