egg-wantu
v1.0.0
Published
init token for wantu
Downloads
5
Readme
egg-wantu
Install
$ npm i egg-wantu --save
Usage
// {app_root}/config/plugin.js
exports.wantu = {
enable: true,
package: 'egg-wantu',
};
Configuration
// {app_root}/config/config.default.js
exports.wantu = {
ak: 'your ak',
sk: 'your sk',
namespace: 'default namespace'
};
see config/config.default.js for more detail.
Example
const token = ctx.service.wantu.init('default space');
this.ctx.body = token;
Questions & Suggestions
Please open an issue here.