Add student photo endpoint (#38)
This commit is contained in:
parent
89c923372e
commit
07ff7a6816
2 changed files with 15 additions and 0 deletions
7
data/opiekun/uczen-zdjecie.json
Normal file
7
data/opiekun/uczen-zdjecie.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue