Merge pull request 'delete function delay' (#73) from sberhubproject into master

Reviewed-on: #73
This commit is contained in:
Sergey_Moryakov 2025-01-31 14:44:35 +03:00
commit c96e435344

View File

@ -4,13 +4,6 @@ const usersRouter = require('./users');
const eventsRouter = require('./events'); const eventsRouter = require('./events');
module.exports = router; module.exports = router;
const delay =
(ms = 1000) =>
(req, res, next) => {
setTimeout(next, ms);
};
router.use(delay());
router.use('/interests', interestsRouter); router.use('/interests', interestsRouter);
router.use('/users', usersRouter); router.use('/users', usersRouter);
router.use('/events', eventsRouter); router.use('/events', eventsRouter);