api; on batch-update, override res.send & res.json to call the series

callback instead, and simply skip error paths. we need to send down the
error eventually
This commit is contained in:
Tyler Renelle
2013-08-14 21:50:17 -04:00
parent 66bdd3616e
commit 0d83ac09fc
5 changed files with 113 additions and 101 deletions
+5 -1
View File
@@ -32,4 +32,8 @@ translate = (req, res, next) ->
next()
module.exports = { splash, view, allowCrossDomain, translate}
apiv1Middleware = (req, res, next) ->
req.habit ?= {}
next()
module.exports = { splash, view, allowCrossDomain, translate, apiv1Middleware}