diff --git a/lib/interfaces/plugins.js b/lib/interfaces/plugins.js index d2be850b1..37003a0e2 100644 --- a/lib/interfaces/plugins.js +++ b/lib/interfaces/plugins.js @@ -309,6 +309,10 @@ module.exports = function (app) { }) }) + router.get('/config', (req, res) => { + res.json(getPluginOptions(plugin.id)) + }) + if (typeof plugin.registerWithRouter !== 'undefined') { plugin.registerWithRouter(router) }