multy-stub/server/routers/old/edateam/index.js
Primakov Alexandr Alexandrovich 4b0d9b4dbc mongoose + tests
2024-10-16 11:06:23 +03:00

26 lines
650 B
JavaScript

const router = require('express').Router();
router.get('/recipe-data', (request, response) => {
response.send(require('../json/recipe-data/success.json'));
});
router.get('/userpage-data', (req, res) => {
res.send(require('../json/userpage-data/success.json'));
});
router.post('/userpage-data', (req, res) => {
res.send(require('../json/userpage-data/success.json'));
});
router.get('/homepage-data', (req, res) => {
res.send(require('../json/homepage-data/success.json'));
});
router.use('/auth', require('./auth'));
router.use('/recipe', require('./user'));
router.use('/main', require('./main'));
module.exports = router;