forked from bro-students/multy-stub
Add stubs kazan-explore
This commit is contained in:
parent
311846f92d
commit
07a02ade1f
@ -1,6 +1,15 @@
|
|||||||
const router = require('express').Router();
|
const router = require('express').Router();
|
||||||
//const loginMiddleware = require('../middleware/login-middleware');
|
//const loginMiddleware = require('../middleware/login-middleware');
|
||||||
|
|
||||||
|
// First page
|
||||||
|
router.get('/getInfoAboutKazan', (request, response) => {
|
||||||
|
response.send(require('../json/first/info-about-kazan/success.json'))
|
||||||
|
})
|
||||||
|
|
||||||
|
router.get('/getNews', (request, response) => {
|
||||||
|
response.send(require('../json/first/news/success.json'))
|
||||||
|
})
|
||||||
|
|
||||||
// Sport page
|
// Sport page
|
||||||
router.get('/getSportData', (request, response) => {
|
router.get('/getSportData', (request, response) => {
|
||||||
response.send(require('./json/sport/sport-data.json'))
|
response.send(require('./json/sport/sport-data.json'))
|
||||||
@ -32,6 +41,10 @@ router.get('/getTripSchedule', (request, response) => {
|
|||||||
response.send(require('./json/transport/trip-schedule/success.json'))
|
response.send(require('./json/transport/trip-schedule/success.json'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
router.get('/getInfoAboutInstitutions', (request, response) => {
|
||||||
|
response.send(require('../json/transport/info-about-institutions.json'))
|
||||||
|
})
|
||||||
|
|
||||||
// Education page
|
// Education page
|
||||||
router.get('/getInfoAboutKFU', (request, response) => {
|
router.get('/getInfoAboutKFU', (request, response) => {
|
||||||
response.send(require('./json/education/info-about-kfu.json'))
|
response.send(require('./json/education/info-about-kfu.json'))
|
||||||
@ -88,4 +101,3 @@ router.post('/entrance', (request, response) => {
|
|||||||
|
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user