6 lines
102 B
JavaScript
6 lines
102 B
JavaScript
|
const delay = (ms = 1000) => (req, res, next) => {
|
||
|
setTimeout(next, ms)
|
||
|
}
|
||
|
|
||
|
module.exports = delay
|