Skip to content

Commit

Permalink
[IndexManagement] Use internal base path for API (elastic#164665)
Browse files Browse the repository at this point in the history
## Summary

The current API is returning 404 as the correct path is internal. This
PR fixes this problem.

(cherry picked from commit 86224d4)
  • Loading branch information
dej611 committed Aug 24, 2023
1 parent b8f9d4a commit 888a412
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { HttpSetup } from '@kbn/core/public';
import { sendRequest, SendRequestResponse } from '../shared_imports';
import { API_BASE_PATH } from '../../common/constants';
import { INTERNAL_API_BASE_PATH } from '../../common/constants';
import { SerializedEnrichPolicy } from '../../common/types';

export interface PublicApiServiceSetup {
Expand All @@ -33,7 +33,7 @@ export class PublicApiService {
*/
getAllEnrichPolicies() {
return sendRequest(this.http, {
path: `${API_BASE_PATH}/enrich_policies`,
path: `${INTERNAL_API_BASE_PATH}/enrich_policies`,
method: 'get',
});
}
Expand Down

0 comments on commit 888a412

Please sign in to comment.