Merge pull request 'school-stage-branch' (#8) from school-stage-branch into master

Reviewed-on: https://git.inno-js.ru/bro-students/multy-stub/pulls/8
This commit is contained in:
prdcsi 2024-05-31 16:49:59 +03:00
commit 63284d6c08
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('/sugarbun', require('./routers/sugarbun'))
app.use('/epja-2023-2', require('./routers/epja-2023-2')) app.use('/epja-2023-2', require('./routers/epja-2023-2'))
require('./routers/hub-video') require('./routers/hub-video')
app.use('/school-stage', require('./routers/school-stage'))
app.use(require('./error')) 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"
}
]
}