Compare commits
2 Commits
3e0054a0b9
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 81293eef52 | |||
| 342f7f10bd |
@@ -2,6 +2,31 @@ import express from "express";
|
|||||||
|
|
||||||
const app = 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, () => {
|
app.listen(8001, () => {
|
||||||
console.log("Server is running on port 8001");
|
console.log("Server is running on port 8001");
|
||||||
});
|
});
|
||||||
|
|||||||
BIN
mock/watchUntis_v0.jpg
Normal file
BIN
mock/watchUntis_v0.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 661 KiB |
Reference in New Issue
Block a user