1.0.2 • Published 6 years ago
egg-secret v1.0.2
egg-secret
Install
$ npm i egg-secret --saveUsage
// {app_root}/config/plugin.js
exports.secret = {
enable: true,
package: 'egg-secret',
};Configuration
// {app_root}/config/config.default.js
exports.secret = {
url:'http://localhost'
};see config/config.default.js for more detail.
Example
const secret = await ctx.getSecret();Questions & Suggestions
Please open an issue here.