Compare commits

...

2 Commits

Author SHA1 Message Date
81293eef52 added mockup 2026-02-23 22:59:30 +01:00
342f7f10bd added route to fetch todays schedule 2026-02-23 22:58:59 +01:00
2 changed files with 25 additions and 0 deletions

View File

@@ -2,6 +2,31 @@ import express from "express";
const app = express();
app.get("/api/today", (req, res) => {
const userLink = req.query.userLink;
// Simulate fetching today's schedule
const todaySchedule = {
day: "Montag",
lessons: [
{
period: "1.",
time_start: "08:00",
time_end: "08:55",
room: "255",
subject: "D",
group: "G2",
teacher: "VanC",
color: "pink",
day: "Montag",
},
],
};
console.log(`Fetching schedule for user: ${userLink}`);
res.json(todaySchedule);
});
app.listen(8001, () => {
console.log("Server is running on port 8001");
});

BIN
mock/watchUntis_v0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 KiB