1 | module.exports = function(req, rsp, stack, callback){
|
2 | var that = this
|
3 | var index = 0
|
4 |
|
5 | function next(err){
|
6 | var layer = stack[index++]
|
7 | if(!layer) return callback(req, rsp, next)
|
8 | layer.call(that, req, rsp, next)
|
9 | }
|
10 |
|
11 | next()
|
12 | } |
\ | No newline at end of file |