Add director information endpoint

This commit is contained in:
Mikołaj Pich 2021-05-02 19:05:53 +02:00
parent 7c9050d287
commit 8c507cc57b
2 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View file

@ -61,3 +61,4 @@ typings/
.vscode/ .vscode/
*.css *.css
*.map *.map
.DS_Store

View file

@ -17,6 +17,7 @@ router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => {
"/GetLastHomeworks", "/GetLastHomeworks",
"/GetLastTests", "/GetLastTests",
"/GetLastStudentLessons", "/GetLastStudentLessons",
"/GetStudentDirectorInformations",
].map(item => { ].map(item => {
return base + 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<br />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) => { router.get("/", (req, res) => {
res.render("log-exception", { res.render("log-exception", {
title: "Dziennik FakeUONET+", title: "Dziennik FakeUONET+",