PIbd-21_Danilov_V.V._Intern.../Lab3/node_modules/connect-pause/index.js

14 lines
241 B
JavaScript
Raw Permalink Normal View History

2023-12-19 20:23:11 +04:00
/**
* connect-pause
* Copyright(c) 2013 Ariel Flesler <aflesler@gmail.com>
* MIT Licensed
*/
module.exports = function(delay, err) {
delay = delay || 1000;
return function(req, res, next){
setTimeout(next, delay, err);
};
};