Skip to content

Commit

Permalink
expose access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
baoshan committed Sep 15, 2014
1 parent fabbd67 commit 261f8aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wx",
"version": "0.0.16",
"version": "0.0.17",
"description": "W(ei)X(in) -- (minimalist) WeChat Middleware for Express.js",
"main": "lib/wx.js",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/wx.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,9 @@ module.exports = ({token, app_id, app_secret, redis_options, populate_user, debu
# ### 注册消息处理句柄
_.extend router,

# ### 向合理使用场景暴露访问口令
access_token: -> access_token

# ### 注册文本消息处理句柄
text: (pattern, handler) =>
if typeof pattern in ['function']
Expand Down

0 comments on commit 261f8aa

Please sign in to comment.