simplified code and added documentation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user