starring-egg-router

Staring3 基于Egg2的动态路由插件

Usage no npm install needed!

<script type="module">
  import starringEggRouter from 'https://cdn.skypack.dev/starring-egg-router';
</script>

README

egg-router

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

Install

$ npm i egg-router --save

Usage

// {app_root}/config/plugin.js
exports.eggRouter = {
  enable: true,
  package: 'egg-router',
};

Configuration

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

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT