forked from bro-students/multy-stub
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>
This commit is contained in:
commit
8fc85a7de8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user