fix: API Endpoint in fetchOpcUaSettingsService für Development korrigiert

- falsches .js im API Pfad entfernt
- Development lädt jetzt korrekt /api/cpl/opcuaAPIHandler
- Production bleibt unverändert
This commit is contained in:
Ismail Ali
2025-04-15 10:35:52 +02:00
parent f709c2e3b7
commit de9c6a7333
18 changed files with 27 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
// services/fetchAnalogeEingaengeService.ts
export const fetchAnalogeEingaenge = async (): Promise<Record<
export const fetchAnalogeEingaengeService = async (): Promise<Record<
string,
any
> | null> => {
@@ -12,7 +12,7 @@ export const fetchAnalogeEingaenge = async (): Promise<Record<
// Skriptpfad abhängig von der Umgebung
const scriptSrc = isDevelopment
? "/apiMockData/SERVICE/ae.js"
? "/api/cpl/analogeEingaengeAPIHandler"
: "/CPL?/CPL/SERVICE/ae.js";
// Skript dynamisch laden