egg-yhsd-api

2.0.5 • Public • Published

egg-yhsd-api

NPM version build status Test coverage David deps Known Vulnerabilities npm download

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.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.5
    0
    • latest

Version History

Package Sidebar

Install

npm i egg-yhsd-api

Weekly Downloads

10

Version

2.0.5

License

MIT

Unpacked Size

9.52 kB

Total Files

8

Last publish

Collaborators

  • longlong