delete: /pages/api/mockdata, weil ich habe eine datenbank und TALAS verbindung lokal

This commit is contained in:
ISA
2025-05-26 14:28:36 +02:00
parent 32a85cc30a
commit b93d474859
16 changed files with 1 additions and 226 deletions

View File

@@ -1,2 +1,2 @@
// /config/appVersion
export const APP_VERSION = "1.1.179";
export const APP_VERSION = "1.1.180";

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "CablesStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading CablesStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GetIconsStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GetIconsStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisLinesStatusMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisLinesStatusMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisStationsMeasurementsMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisStationsMeasurementsMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisStationsStaticDistrictMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisStationsStaticDistrictMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisStationsStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisStationsStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisStationsStatusDistrictMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisStationsStatusDistrictMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisStationsStatusMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisStationsStatusMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "GisSystemStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading GisSystemStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "KueStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading KueStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "KueStatusMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading KueStatusMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "ServicesStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading ServicesStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "StationsStaticMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading StationsStaticMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "StationsStatusMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading StationsStatusMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}

View File

@@ -1,15 +0,0 @@
import fs from "fs";
import path from "path";
export default function handler(req, res) {
const filePath = path.join(process.cwd(), "webServiceMockdata", "StatusTALASMock.json");
try {
const fileContent = fs.readFileSync(filePath, "utf8");
const data = JSON.parse(fileContent);
res.status(200).json(data);
} catch (error) {
console.error(`Error reading StatusTALASMock.json:`, error);
res.status(500).json({ message: "Error loading mock data" });
}
}