init from origin + update

This commit is contained in:
2023-08-01 13:14:02 +03:00
commit 321dc4c3c5
1109 changed files with 16019 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// eslint-disable-next-line new-cap
const router = require('express').Router();
router.get('/catalog', (request, response, next) => {
setTimeout(() => next());
}, (request, response) => {
const params = process.env.stub;
if (params === 'error') {
response.send(require('./error.json'));
} else {
response.send(require('./cardData.json'));
}
});
module.exports = router;