Compare commits
2 Commits
feature/fr
...
dhs-testin
| Author | SHA1 | Date | |
|---|---|---|---|
| 18b63bed21 | |||
| 707c3be3ec |
@@ -49,6 +49,7 @@ app.use('/kazan-explore', require('./routers/kazan-explore'))
|
|||||||
app.use('/edateam', require('./routers/edateam-legacy'))
|
app.use('/edateam', require('./routers/edateam-legacy'))
|
||||||
app.use('/dry-wash', require('./routers/dry-wash'))
|
app.use('/dry-wash', require('./routers/dry-wash'))
|
||||||
app.use('/freetracker', require('./routers/freetracker'))
|
app.use('/freetracker', require('./routers/freetracker'))
|
||||||
|
app.use('/dhs-testing', require('./routers/dhs-testing'))
|
||||||
|
|
||||||
app.use(require('./error'))
|
app.use(require('./error'))
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
const router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.use('/performer', require('./dashboard-performer'))
|
router.use('/performer', require('./dashboard-performer'))
|
||||||
router.use('/landing', require('./landing'))
|
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
const Router = require('express').Router;
|
|
||||||
|
|
||||||
const router = Router()
|
|
||||||
|
|
||||||
const values = {
|
|
||||||
'blocks': 'success',
|
|
||||||
'application': 'success'
|
|
||||||
}
|
|
||||||
|
|
||||||
const timer = (_req, _res, next) => {
|
|
||||||
setTimeout(() => next(), 500)
|
|
||||||
}
|
|
||||||
|
|
||||||
router.use(timer)
|
|
||||||
|
|
||||||
router.get(
|
|
||||||
'/blocks',
|
|
||||||
(req, res) =>
|
|
||||||
res.send(require(`./json/blocks-${values['blocks']}.json`))
|
|
||||||
)
|
|
||||||
|
|
||||||
router.post(
|
|
||||||
'/application',
|
|
||||||
(req, res) => {
|
|
||||||
res.send(require(`./json/application-${values['application']}.json`))
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = router
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"success": false,
|
|
||||||
"body": { },
|
|
||||||
"errors": [
|
|
||||||
"Что-то пошло не так"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"success": true,
|
|
||||||
"body": { }
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"success": false,
|
|
||||||
"body": {
|
|
||||||
"blocks": []
|
|
||||||
},
|
|
||||||
"errors": [
|
|
||||||
"Что-то пошло не так"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"success": true,
|
|
||||||
"body": {
|
|
||||||
"blocks": [
|
|
||||||
{
|
|
||||||
"titleKey":"block1.title",
|
|
||||||
"textKey":"block1.subtitle",
|
|
||||||
"imageName":"truck1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"titleKey":"block2.title",
|
|
||||||
"textKey":"block2.subtitle",
|
|
||||||
"imageName":"truck2"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"titleKey":"block3.title",
|
|
||||||
"textKey":"block3.subtitle",
|
|
||||||
"imageName":"truck3"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user