baoshan/wx — pull request #22 by faceair (2014-12-03 17:15:26+00:00)
Title: support middleware in wx.text

example:

requireAuthenticate = (req, res, next) ->
mJwc.byOpenId req.user.openid, (userObj) ->
unless userObj
return res.text "你还没绑定教务系统账号呢，>>>去绑定"
req.jwc = userObj
return next()

wx.text '学籍', requireAuthenticate, (req, res) ->
res.text req.jwc