Export system API module so plugins may use it
This commit is contained in:
parent
14ea5c3ff5
commit
3bdffb7f31
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ import ingest from './server/routes/api/ingest';
|
|||
import search from './server/routes/api/search';
|
||||
import settings from './server/routes/api/settings';
|
||||
import scripts from './server/routes/api/scripts';
|
||||
import * as systemApi from './server/lib/system_api';
|
||||
|
||||
module.exports = function (kibana) {
|
||||
const kbnBaseUrl = '/app/kibana';
|
||||
|
@ -92,6 +93,8 @@ module.exports = function (kibana) {
|
|||
search(server);
|
||||
settings(server);
|
||||
scripts(server);
|
||||
|
||||
server.expose('systemApi', systemApi);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue