docs: add comments to clarify the APIs and connections

This commit is contained in:
ISA
2024-06-10 07:41:45 +02:00
parent c76ada149a
commit c6fab5e84d
2 changed files with 2 additions and 2 deletions

View File

@@ -722,7 +722,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
const port = url.port; // Gibt den Port zurück, leer wenn Standardport verwendet wird const port = url.port; // Gibt den Port zurück, leer wenn Standardport verwendet wird
const protocol = url.protocol; // "http:" oder "https:" const protocol = url.protocol; // "http:" oder "https:"
//const serverURL = `${protocol}//${hostname}`; //const serverURL = `${protocol}//${hostname}`;
const serverURL = "http://10.10.0.13"; // weil ich keine API habe, ansonsten serverURL ist localhost(IP-Adresse) const serverURL = "http://10.10.0.13"; // weil ich keine API habe, ansonsten serverURL ist localhost(IP-Adresse) für GisSystemStatic für die Benutzerrechte
//const serverURL = "http://localhost:3000"; //const serverURL = "http://localhost:3000";
const params = new URL(window.location.href).searchParams; const params = new URL(window.location.href).searchParams;

View File

@@ -4,7 +4,7 @@ import { createProxyMiddleware } from "http-proxy-middleware";
export default createProxyMiddleware({ export default createProxyMiddleware({
//target: "http://192.168.10.58:3001", //target: "http://192.168.10.58:3001",
target: "http://10.10.0.13", // Ziel-URL des Proxys target: "http://10.10.0.13", // Ziel-URL des Proxys // API Aufruf zum mapGisStationsStaticDistrictUrl, mapGisStationsStatusDistrictUrl, mapGisStationsMeasurementsUrl, mapGisSystemStaticUrl und mapDataIconUrl
//target: "http://localhost", // Ziel-URL des Proxys //target: "http://localhost", // Ziel-URL des Proxys
//target: "http://192.168.10.187:3000", // Ziel-URL des Proxys //target: "http://192.168.10.187:3000", // Ziel-URL des Proxys