mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[IndexManagement] Use internal base path for API (#164665)
## Summary The current API is returning 404 as the correct path is internal. This PR fixes this problem.
This commit is contained in:
parent
ad55946c12
commit
86224d4cf6
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue