multy-stub/server/routers/edateam/index.js

26 lines
650 B
JavaScript
Raw Normal View History

2024-05-19 03:01:32 +03:00
const router = require('express').Router();
router.get('/recipe-data', (request, response) => {
2024-05-25 00:10:46 +03:00
response.send(require('../json/recipe-data/success.json'));
});
router.get('/userpage-data', (req, res) => {
res.send(require('../json/userpage-data/success.json'));
});
2024-05-19 03:01:32 +03:00
2024-05-25 00:10:46 +03:00
router.post('/userpage-data', (req, res) => {
res.send(require('../json/userpage-data/success.json'));
});
2024-05-19 03:01:32 +03:00
2024-05-25 00:10:46 +03:00
router.get('/homepage-data', (req, res) => {
res.send(require('../json/homepage-data/success.json'));
});
2024-05-19 03:01:32 +03:00
2024-05-25 00:10:46 +03:00
router.use('/auth', require('./auth'));
router.use('/recipe', require('./user'));
router.use('/main', require('./main'));
2024-05-19 03:01:32 +03:00
module.exports = router;