wechat-router
wechat-router是一个基于node-wechat的微信路由中间件,用法类似express的router
Installation
$ npm install wechat-router
Use with Connect/Express
const wechat = ;const Router = ; const config = token: 'token' appid: 'appid' encodingAESKey: 'encodinAESKey'; let router = ; routertext'hello' { res;}; let anotherRouter = ; anotherRoutereventEventKey: '123456' { res}; { //do something ;} routereventEvent: 'SCAN' midDeal anotherRouter; app;app;
TODO
- 对话模式
- Koa/Co版
License
The MIT license.