[Synthetics] adjust synthetics api routes to use /internal prefix (#159135)

## Summary

Adds missing `/internal` prefixes to synthetics api routes
This commit is contained in:
Dominique Clarke 2023-06-06 12:55:38 -04:00 committed by GitHub
parent d1da0ee836
commit f48b742be1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -11,11 +11,11 @@ export enum SYNTHETICS_API_URLS {
PING_STATUSES = '/internal/synthetics/ping_statuses',
OVERVIEW_STATUS = `/internal/synthetics/overview_status`,
INDEX_SIZE = `/internal/synthetics/index_size`,
PARAMS = `/synthetics/params`,
PRIVATE_LOCATIONS = `/synthetics/private_locations`,
PARAMS = `/internal/synthetics/params`,
PRIVATE_LOCATIONS = `/internal/synthetics/private_locations`,
PRIVATE_LOCATIONS_MONITORS = `/internal/synthetics/private_locations/monitors`,
SYNC_GLOBAL_PARAMS = `/synthetics/sync_global_params`,
ENABLE_DEFAULT_ALERTING = `/synthetics/enable_default_alerting`,
SYNC_GLOBAL_PARAMS = `/internal/synthetics/sync_global_params`,
ENABLE_DEFAULT_ALERTING = `/internal/synthetics/enable_default_alerting`,
JOURNEY = `/internal/synthetics/journey/{checkGroup}`,
SYNTHETICS_SUCCESSFUL_CHECK = `/internal/synthetics/synthetics/check/success`,
JOURNEY_SCREENSHOT_BLOCKS = `/internal/synthetics/journey/screenshot/block`,

View file

@ -36,7 +36,7 @@ export const getSyntheticsFilters: SyntheticsRestApiRouteFactory = () => ({
method: 'GET',
path: SYNTHETICS_API_URLS.FILTERS,
validate: {},
handler: async ({ savedObjectsClient, request, response, server }): Promise<any> => {
handler: async ({ savedObjectsClient }): Promise<any> => {
const data = await savedObjectsClient.find({
type: syntheticsMonitorType,
perPage: 0,