Add stubs kazan-explore

This commit is contained in:
Kamila Nazirova 2024-06-01 20:22:43 +03:00
parent 311846f92d
commit 07a02ade1f

View File

@ -1,6 +1,15 @@
const router = require('express').Router();
//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
router.get('/getSportData', (request, response) => {
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'))
})
router.get('/getInfoAboutInstitutions', (request, response) => {
response.send(require('../json/transport/info-about-institutions.json'))
})
// Education page
router.get('/getInfoAboutKFU', (request, response) => {
response.send(require('./json/education/info-about-kfu.json'))
@ -88,4 +101,3 @@ router.post('/entrance', (request, response) => {
module.exports = router;