simplified code and added documentation

This commit is contained in:
2026-04-17 22:46:47 +02:00
parent 6889cf15bf
commit 4f6b33f924
2 changed files with 60 additions and 8 deletions
-4
View File
@@ -163,10 +163,6 @@ app.get("/api/get-timetable/", async (req, res) => {
console.error("formatData failed", formatError);
res.status(500).json({ error: "Failed to format timetable data" });
}
// respond to client
res.json(timetableResponse.data?.result ?? null);
return;
} catch (error) {
const status = error?.response?.status;
const data = error?.response?.data;