kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
23 lines (15 loc) • 479 B
JavaScript
import pluginInit from './plugin_init';
module.exports = async function (kbnServer, server, config) {
if (!config.get('plugins.initialize')) {
server.log(['info'], 'Plugin initialization disabled.');
return [];
}
let { plugins } = kbnServer;
// extend plugin apis with additional context
plugins.getPluginApis().forEach(api => {
Object.defineProperty(api, 'uiExports', {
value: kbnServer.uiExports
});
});
await pluginInit(plugins);
};