Compare commits

...

2 Commits

View File

@ -20,7 +20,7 @@ router.get('/getInfoAboutKazan', (request, response) => {
router.get('/getServices', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`../json/first/services/${lang}/success.json`);
const data = require(`./json/first/services/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });