Compare commits
2 Commits
786085d4d0
...
cb56e2dd2c
Author | SHA1 | Date | |
---|---|---|---|
cb56e2dd2c | |||
325e2f125b |
@ -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'))
|
||||
|
||||
|
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