Merge pull request 'school-stage stubs' (#9) from school-stage-branch into master
Reviewed-on: https://git.inno-js.ru/bro-students/multy-stub/pulls/9
This commit is contained in:
commit
569b1b0d9e
@ -7,5 +7,8 @@ router.get('/teachers', (request, response) => {
|
|||||||
router.get('/account', (request, response) => {
|
router.get('/account', (request, response) => {
|
||||||
response.send(require('./json/account/account.json'))
|
response.send(require('./json/account/account.json'))
|
||||||
})
|
})
|
||||||
|
router.post('/login', (request, response) => {
|
||||||
|
response.send(require('../json/login/success.json'))
|
||||||
|
})
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
@ -2,7 +2,6 @@
|
|||||||
"data": [
|
"data": [
|
||||||
{
|
{
|
||||||
"login": "user1",
|
"login": "user1",
|
||||||
"password": "1234",
|
|
||||||
"photo": "boy",
|
"photo": "boy",
|
||||||
"surname": "Иванов",
|
"surname": "Иванов",
|
||||||
"name": "Иван",
|
"name": "Иван",
|
||||||
@ -14,7 +13,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"login": "user2",
|
"login": "user2",
|
||||||
"password": "1234",
|
|
||||||
"photo": "boy",
|
"photo": "boy",
|
||||||
"surname": "Александров",
|
"surname": "Александров",
|
||||||
"name": "Александр",
|
"name": "Александр",
|
||||||
|
15
server/routers/school-stage/json/login/success.json
Normal file
15
server/routers/school-stage/json/login/success.json
Normal 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"]
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user