egg-restful-response

Restful response plugin for egg.js

Usage no npm install needed!

<script type="module">
  import eggRestfulResponse from 'https://cdn.skypack.dev/egg-restful-response';
</script>

README

egg-restful-response

NPM version build status Test coverage npm download

插件用于简单地给出 restful 标准的响应。

依赖说明

依赖的 egg 版本

egg-restful-response 版本 egg 1.x
1.x 😁
0.x

开启插件

// config/plugin.js
exports.restfulResponse = {
  enable: true,
  package: 'egg-restful-response',
};

使用

阅读 app/extend/context.js

详细配置

请到 config/config.default.js 查看详细配置项说明。

提问交流

请到 egg issues 异步交流。

License

MIT