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:
@@ -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}
|
||||
Reference in New Issue
Block a user