Add GetLastAnnouncements endpoint
This commit is contained in:
parent
90b39d4fa6
commit
6359c406e0
2 changed files with 51 additions and 0 deletions
41
data/uonetplus/GetLastAnnouncements.json
Normal file
41
data/uonetplus/GetLastAnnouncements.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"data": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "Wydarzenia ",
|
||||
"Url": null,
|
||||
"Dane": "<p>W dniu 29 lutego 2024 r. uczniowie klasy 3d biorą udział w wyjściu na strzelnicę.</p>",
|
||||
"Symbol": "27.02.2024, Jan kowalski",
|
||||
"Nieaktywny": false
|
||||
},
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "Platformy",
|
||||
"Url": null,
|
||||
"Dane": "<p>Platformy do wykorzystania dla uczniów w zakresie kompetencji cyfrowych:</p>",
|
||||
"Symbol": "05.12.2023, Malwina Czerwieńska",
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
}
|
|
@ -19,6 +19,7 @@ router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => {
|
|||
"/GetLastHomeworks",
|
||||
"/GetLastTests",
|
||||
"/GetLastStudentLessons",
|
||||
"/GetLastAnnouncements",
|
||||
"/GetStudentDirectorInformations",
|
||||
].map(item => {
|
||||
return base + item;
|
||||
|
@ -120,6 +121,15 @@ router.all("/powiatwulkanowy/Start.mvc/GetStudentDirectorInformations", (req, re
|
|||
});
|
||||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetLastAnnouncements", (req, res) => {
|
||||
res.json({
|
||||
"data": require("../../data/uonetplus/GetLastAnnouncements"),
|
||||
"errorMessage": null,
|
||||
"feedback": null,
|
||||
"success": true
|
||||
});
|
||||
});
|
||||
|
||||
router.get("/", (req, res) => {
|
||||
res.render("log-exception", {
|
||||
title: "Dziennik FakeUONET+",
|
||||
|
|
Loading…
Reference in a new issue