1.0.0 • Published 7 years ago
@alphatr/koa-wechat v1.0.0
Wechat middleware for koa 2
install
npm install --save @alphatr/koa-wechat
how to use
app.use(wechat('token').middleware((ctx, next) => {
const message = ctx.state.wechat;
// do something
ctx.body = 'response';
return next();
});
1.0.0
7 years ago