@spalger/kibana
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
15 lines (11 loc) • 380 B
JavaScript
let _ = require('lodash');
module.exports = _.once(function (kbnServer) {
// user configured default route
let defaultConfig = kbnServer.config.get('server.defaultRoute');
if (defaultConfig) return defaultConfig;
// redirect to the single app
if (kbnServer.uiExports.apps.length === 1) {
return `/app/${kbnServer.uiExports.apps[0].id}`;
}
return '/apps';
});