egg-yhsd-api
v2.0.5
Published
友好速搭api egg插件版
Downloads
5
Readme
egg-yhsd-api
Install
$ npm i egg-yhsd-api --save
Usage
// {app_root}/config/plugin.js
exports.yhsdApi = {
enable: true,
package: 'egg-yhsd-api',
};
Configuration
// {app_root}/config/config.default.js
exports.yhsdApi = {
client: { // client必须要
// 测试
appKey: '***',
appSecret: '****',
private: true,
topics: {
'products/create': `${host}/hook/products/create`, // 商品创建
}
},
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.