fix problems with edateam stubs index.js

This commit is contained in:
NewPerson 2024-05-19 21:07:33 +03:00
parent 6651215eeb
commit cb8b2cc5aa

View File

@ -1,15 +1,15 @@
const router = require('express').Router();
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)=>{
res.send(require('../json/userpage-data/success.json'))
})
res.send(require('./json/userpage-data/success.json'));
});
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;