school-stage stubs #9

Merged
prdcsi merged 1 commits from school-stage-branch into master 2024-05-31 18:03:53 +03:00
3 changed files with 18 additions and 2 deletions

View File

@ -7,5 +7,8 @@ router.get('/teachers', (request, response) => {
router.get('/account', (request, response) => {
response.send(require('./json/account/account.json'))
})
router.post('/login', (request, response) => {
response.send(require('../json/login/success.json'))
})
module.exports = router;

View File

@ -2,7 +2,6 @@
"data": [
{
"login": "user1",
"password": "1234",
"photo": "boy",
"surname": "Иванов",
"name": "Иван",
@ -14,7 +13,6 @@
},
{
"login": "user2",
"password": "1234",
"photo": "boy",
"surname": "Александров",
"name": "Александр",

View File

@ -0,0 +1,15 @@
{
"data":
{
"login": "user1",
"photo": "boy",
"surname": "Иванов",
"name": "Иван",
"class": "2",
"group": "1",
"number": "+7 927 030 13 00",
"teacher": "Иванова Валерия Константиновна",
"lessons": ["02.05", "07.05", "14.05", "17.05", "21.05", "24.05", "28.05"]
}
}