ecliptica/server/routers/epja-2024-1/enterfront/middlewares/delay.js
Nikolai Petukhov 18a1095cf0 enterfront
2024-10-10 12:02:52 +03:00

6 lines
102 B
JavaScript

const delay = (ms = 1000) => (req, res, next) => {
setTimeout(next, ms)
}
module.exports = delay