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

12 lines
310 B
JavaScript
Raw Normal View History

2024-05-24 05:04:31 +03:00
const router = require('express').Router();
router.get('/catalog-data', (request, response) => {
response.send(require('./json/catalog-data/success.json'))
})
router.get('/catalog-data', (request, response) => {
response.send(require('./json/item-data/newsuccess.json'))
})
module.exports = router;