egg-raml-console
v2.0.3
Published
RAML console plugin for egg.
Downloads
3
Maintainers
Readme
egg-raml-console
RAML console plugin for egg.
Usage
First, install it:
npm instal egg-raml-console
Import it via config/plugin.js
:
module.exports = {
...
'raml-console': {
enable: true,
package: 'egg-raml-console'
}
...
}
Configure it via config/config.<env>.js
:
module.exports = {
...
ramlConsole: {
ramlPath: '/path/to/raml/dir' // default value: 'absolute path to assets/raml-examples'
mountPath: '<routePath>', // default value: '/docs'
}
...
}