egg-yhsd-api
Install
$ npm i egg-yhsd-api --save
Usage
// {app_root}/config/plugin.jsexportsyhsdApi = enable: true package: 'egg-yhsd-api';
Configuration
// {app_root}/config/config.default.jsexportsyhsdApi = client: // client必须要 // 测试 appKey: '***' appSecret: '****' private: true topics: 'products/create': `/hook/products/create` // 商品创建 ;
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.