edit: Stationen auf die Karte bekommen , muss der IP des Server eingegeben werden in [...path]

This commit is contained in:
ISA
2024-06-24 07:05:22 +02:00
parent a7b7e3f25a
commit ca78d56551
15 changed files with 968 additions and 7 deletions

View File

@@ -3,11 +3,12 @@ import { createProxyMiddleware } from "http-proxy-middleware";
export default createProxyMiddleware({
//target: "http://192.168.10.58:3001",
// Stationen bekommen
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:3000", // Ziel-URL des Proxys
//target: "http://192.168.10.187:3000", // Ziel-URL des Proxys
//target: "http://192.168.10.14",
changeOrigin: true,
pathRewrite: {
"^/api": "/", // Optional: Entfernt /api aus dem Pfad, wenn das Backend dies nicht erfordert