Skip to content

Commit

Permalink
[ML] http service cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Feb 25, 2020
1 parent fe32903 commit 4fb6904
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 27 deletions.
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/transform/public/app/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export { useGetTransforms } from './use_get_transforms';
export { useDeleteTransforms } from './use_delete_transform';
export { useStartTransforms } from './use_start_transform';
export { useStopTransforms } from './use_stop_transform';
export { useRequest } from './use_request';
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { UseRequestConfig, useRequest as _useRequest } from '../../../shared_imports';
import { UseRequestConfig, useRequest as _useRequest } from '../../shared_imports';

import { useAppDependencies } from '../../app_dependencies';
import { useAppDependencies } from '../app_dependencies';

export const useRequest = (config: UseRequestConfig) => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { createContext } from 'react';
import { useRequest } from '../../../services/http/use_request';
import { useRequest } from '../../../hooks';
import { hasPrivilegeFactory, Capabilities, Privileges } from './common';

interface Authorization {
Expand Down
18 changes: 0 additions & 18 deletions x-pack/legacy/plugins/transform/public/app/services/http/http.ts

This file was deleted.

This file was deleted.

0 comments on commit 4fb6904

Please sign in to comment.