Res.send not req.send you absolute knucklehead.
This commit is contained in:
parent
cc509a7b57
commit
dd74ba7218
2
index.js
2
index.js
|
@ -154,7 +154,7 @@ function rCounter (req, res, next) {
|
||||||
counter = intval._state.counter
|
counter = intval._state.counter
|
||||||
}
|
}
|
||||||
log.info('/counter', { method : req.method, set : set, counter : counter })
|
log.info('/counter', { method : req.method, set : set, counter : counter })
|
||||||
req.send({ counter : counter })
|
res.send({ counter : counter })
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue