Skip to content

Commit

Permalink
Migrate legacy import/export endpoints (#69474)
Browse files Browse the repository at this point in the history
* migrate legacy export routes to `legacy_export` plugin

* adapt unit tests

* remove already dead (already moved) libs
  • Loading branch information
pgayvallet committed Jun 24, 2020
1 parent 30b997f commit 6a69ec1
Show file tree
Hide file tree
Showing 18 changed files with 298 additions and 1,055 deletions.
5 changes: 0 additions & 5 deletions src/legacy/core_plugins/kibana/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import Fs from 'fs';
import { resolve } from 'path';
import { promisify } from 'util';

import { importApi } from './server/routes/api/import';
import { exportApi } from './server/routes/api/export';
import { getUiSettingDefaults } from './server/ui_setting_defaults';
import { registerCspCollector } from './server/lib/csp_usage_collector';
import { injectVars } from './inject_vars';
Expand Down Expand Up @@ -91,9 +89,6 @@ export default function (kibana) {

init: async function (server) {
const { usageCollection } = server.newPlatform.setup.plugins;
// routes
importApi(server);
exportApi(server);
registerCspCollector(usageCollection, server);
server.injectUiAppVars('kibana', () => injectVars(server));
},
Expand Down
Loading

0 comments on commit 6a69ec1

Please sign in to comment.