Nothing's plumb meaningless
    Have ideas to improve npm?Join in the discussion! »

    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

    Install

    npm i egg-yhsd-api

    DownloadsWeekly Downloads

    2

    Version

    2.0.5

    License

    MIT

    Unpacked Size

    9.52 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar