school-stage-branch #8
11
server/routers/school-stage/index.js
Normal file
11
server/routers/school-stage/index.js
Normal file
@ -0,0 +1,11 @@
|
||||
const router = require('express').Router();
|
||||
|
||||
router.get('/teachers', (request, response) => {
|
||||
response.send(require('./json/teachers/success.json'))
|
||||
})
|
||||
|
||||
router.get('/account', (request, response) => {
|
||||
response.send(require('./json/account/account.json'))
|
||||
})
|
||||
|
||||
module.exports = router;
|
28
server/routers/school-stage/json/account/account.json
Normal file
28
server/routers/school-stage/json/account/account.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"login": "user1",
|
||||
"password": "1234",
|
||||
"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"]
|
||||
},
|
||||
{
|
||||
"login": "user2",
|
||||
"password": "1234",
|
||||
"photo": "boy",
|
||||
"surname": "Александров",
|
||||
"name": "Александр",
|
||||
"class": "3",
|
||||
"group": "2",
|
||||
"number": "+7 927 030 13 00",
|
||||
"teacher": "Иванова Валерия Константиновна",
|
||||
"lessons": ["02.05", "07.05", "14.05", "17.05", "21.05", "24.05", "28.05"]
|
||||
}
|
||||
]
|
||||
}
|
10
server/routers/school-stage/json/teachers/success.json
Normal file
10
server/routers/school-stage/json/teachers/success.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"imageUrl": "teacher1"
|
||||
},
|
||||
{
|
||||
"imageUrl": "teacher2"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user