Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/connect-pause/index.js
VanyaAlekseev c91124ead4 lab3
2023-12-21 21:08:22 +04:00

14 lines
241 B
JavaScript

/**
* 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);
};
};