delete function delay
This commit is contained in:
parent
c000106ec8
commit
7358faef1d
@ -4,13 +4,6 @@ const usersRouter = require('./users');
|
||||
const eventsRouter = require('./events');
|
||||
module.exports = router;
|
||||
|
||||
const delay =
|
||||
(ms = 1000) =>
|
||||
(req, res, next) => {
|
||||
setTimeout(next, ms);
|
||||
};
|
||||
|
||||
router.use(delay());
|
||||
router.use('/interests', interestsRouter);
|
||||
router.use('/users', usersRouter);
|
||||
router.use('/events', eventsRouter);
|
||||
|
Loading…
Reference in New Issue
Block a user