Skip to content

Commit

Permalink
some things i missed
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Nov 16, 2018
1 parent 8ef3ea5 commit e382cf4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/core_plugins/interpreter/server/lib/create_handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
*/

import boom from 'boom';
import { SECURITY_AUTH_MESSAGE } from '../../../../../x-pack/plugins/canvas/common/lib/constants';
import { isSecurityEnabled } from '../../../../../x-pack/plugins/canvas/server/lib/feature_check';
import { isSecurityEnabled } from './feature_check';

const SECURITY_AUTH_MESSAGE = 'Authentication failed';

export const createHandlers = (request, server) => {
const { callWithRequest } = server.plugins.elasticsearch.getCluster('data');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import boom from 'boom';
import { API_ROUTE } from '../../common/lib/constants';
import { API_ROUTE } from '../../../../../x-pack/plugins/canvas/common/lib/constants';

export function getRequest(server, { headers }) {
const url = `${API_ROUTE}/ping`;
Expand Down
5 changes: 3 additions & 2 deletions src/core_plugins/interpreter/server/routes/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import { routeExpressionProvider } from '../lib/route_expression/index';
import { browser } from '../lib/route_expression/browser';
import { thread } from '../lib/route_expression/thread/index';
import { server as serverEnv } from '../lib/route_expression/server';
import { getRequest } from '../../../../../x-pack/plugins/canvas/server/lib/get_request';
import { API_ROUTE } from '../../../../../x-pack/plugins/canvas/common/lib/constants';
import { getRequest } from '../lib/get_request';

const API_ROUTE = '/api/canvas';

async function getModifiedRequest(server, socket) {
try {
Expand Down

0 comments on commit e382cf4

Please sign in to comment.