delete function delay

This commit is contained in:
admin 2025-01-31 14:42:36 +03:00
parent c000106ec8
commit 7358faef1d
No known key found for this signature in database

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);