Compare commits

...

2 Commits

Author SHA1 Message Date
cb56e2dd2c school-stage stubs 2024-05-31 16:38:40 +03:00
325e2f125b school-stage stubs 2024-05-31 16:28:05 +03:00
4 changed files with 50 additions and 0 deletions

View File

@ -66,6 +66,7 @@ app.use('/dhs-testing', require('./routers/dhs-testing'))
//app.use('/sugarbun', require('./routers/sugarbun'))
app.use('/epja-2023-2', require('./routers/epja-2023-2'))
require('./routers/hub-video')
app.use('/school-stage', require('./routers/school-stage'))
app.use(require('./error'))

View 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;

View 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"]
}
]
}

View File

@ -0,0 +1,10 @@
{
"data": [
{
"imageUrl": "teacher1"
},
{
"imageUrl": "teacher2"
}
]
}