Compare commits

..

2 Commits

Author SHA1 Message Date
8fc85a7de8 Merge pull request 'fix problems with edateam stubs index.js' (#2) from edateam_branch into master
Reviewed-on: https://git.inno-js.ru/bro-students/multy-stub/pulls/2
Reviewed-by: primakov <primakovpro@gmail.com>
2024-05-19 21:14:14 +03:00
NewPerson
cb8b2cc5aa fix problems with edateam stubs index.js 2024-05-19 21:07:33 +03:00

View File

@ -1,15 +1,15 @@
const router = require('express').Router(); const router = require('express').Router();
router.get('/recipe-data', (request, response) => { router.get('/recipe-data', (request, response) => {
response.send(require('../json/recipe-data/success.json')) response.send(require('./json/recipe-data/success.json'));
}) });
router.get('/userpage-data', (req, res)=>{ router.get('/userpage-data', (req, res)=>{
res.send(require('../json/userpage-data/success.json')) res.send(require('./json/userpage-data/success.json'));
}) });
router.get('/homepage-data', (req, res)=>{ router.get('/homepage-data', (req, res)=>{
res.send(require('../json/homepage-data/success.json')) res.send(require('./json/homepage-data/success.json'));
}) });
module.exports = router; module.exports = router;