@weiweidaolai/egg-data-source

1.0.0 • Public • Published

egg-datasource

Install

$ npm i @myfe/egg-datasource --save

开启插件

// {app_root}/config/plugin.js
exports.datasource = {
  enable: true,
  package: 'egg-data-source',
};

配置插件

// {app_root}/config/config.default.js
exports.datasource = {
};

使用场景

  • 进行 datasource 的描述及代理处理,可以方便的将请求映射至对应的后端。

/@weiweidaolai/egg-data-source/

    Package Sidebar

    Install

    npm i @weiweidaolai/egg-data-source

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.63 kB

    Total Files

    2

    Last publish

    Collaborators

    • weiweidaolai