Add student photo endpoint (#38)

This commit is contained in:
Mateusz Idziejczak 2021-12-01 21:41:48 +01:00 committed by GitHub
parent 89c923372e
commit 07ff7a6816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

File diff suppressed because one or more lines are too long

View file

@ -42,6 +42,7 @@ router.get("/", (req, res) => {
"/Statystyki.mvc/GetPunkty",
"/SzkolaINauczyciele.mvc/Get",
"/Uczen.mvc/Get",
"/UczenZdjecie.mvc/Get",
"/UczenCache.mvc/Get",
"/UczenDziennik.mvc/Get",
"/Usprawiedliwienia.mvc/Post",
@ -780,6 +781,13 @@ router.all("/Uczen.mvc/Get", (req, res) => {
});
});
router.all("/UczenZdjecie.mvc/Get", (req, res) => {
res.json({
"data": require("../../data/opiekun/uczen-zdjecie.json"),
"success": true
});
});
router.all("/Usprawiedliwienia.mvc/Post", (req, res) => {
res.json({
"data": {