- Neue Route /api/cpl/slotData erstellt - Lädt Daten aus /public/CPLmockData/kuesChartData/... basierend auf slot, messart und dia - Optionales Filtern über vonDatum und bisDatum hinzugefügt - 404-Fehler bei fehlender Datei wird abgefangen
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
// pages/api/test.ts
|
|
|
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
|
|
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
|
res.status(200).json({
|
|
message: "✅ Die API ist erreichbar!",
|
|
method: req.method,
|
|
timestamp: new Date().toISOString(),
|
|
});
|
|
}
|