multy-stub/server/routers/epja-2024-1/enterfront/middlewares/delay.js

6 lines
102 B
JavaScript
Raw Normal View History

2024-10-10 12:02:52 +03:00
const delay = (ms = 1000) => (req, res, next) => {
setTimeout(next, ms)
}
module.exports = delay