From 8c507cc57bcef37da4d445fbe76e40c816a09774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Sun, 2 May 2021 19:05:53 +0200 Subject: [PATCH] Add director information endpoint --- .gitignore | 1 + src/routes/uonetplus.js | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/.gitignore b/.gitignore index 5dd0e03..223bd41 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,4 @@ typings/ .vscode/ *.css *.map +.DS_Store diff --git a/src/routes/uonetplus.js b/src/routes/uonetplus.js index d512f79..218e5b7 100644 --- a/src/routes/uonetplus.js +++ b/src/routes/uonetplus.js @@ -17,6 +17,7 @@ router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => { "/GetLastHomeworks", "/GetLastTests", "/GetLastStudentLessons", + "/GetStudentDirectorInformations", ].map(item => { return base + item; }) @@ -90,6 +91,37 @@ router.all("/powiatwulkanowy/Start.mvc/GetLastStudentLessons", (req, res) => { }); }); +router.all("/powiatwulkanowy/Start.mvc/GetStudentDirectorInformations", (req, res) => { + res.json({ + "data": [ + { + "Dane": null, + "IkonkaNazwa": null, + "Nazwa": "", + "Nieaktywny": false, + "Num": null, + "Symbol": null, + "Url": null, + "Zawartosc": [ + { + "Dane": "Dzień wolny od zajęć dydaktycznych
03.05.2021 – poniedziałek", + "IkonkaNazwa": null, + "Nazwa": "03.05.2021 Dzień wolny od zajęć dydaktycznych", + "Nieaktywny": false, + "Num": null, + "Symbol": null, + "Url": null, + "Zawartosc": [] + } + ] + } + ], + "errorMessage": null, + "feedback": null, + "success": true + }); +}); + router.get("/", (req, res) => { res.render("log-exception", { title: "Dziennik FakeUONET+",