From 07a02ade1f6b31172779ea47428cfe182828ba98 Mon Sep 17 00:00:00 2001 From: Kamila Nazirova Date: Sat, 1 Jun 2024 20:22:43 +0300 Subject: [PATCH] Add stubs kazan-explore --- server/routers/kazan-explore/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/server/routers/kazan-explore/index.js b/server/routers/kazan-explore/index.js index 1002720..4f1d3bf 100644 --- a/server/routers/kazan-explore/index.js +++ b/server/routers/kazan-explore/index.js @@ -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; -