Skip to content

Commit

Permalink
[Synthetics] adjust synthetics api routes to use /internal prefix (#1…
Browse files Browse the repository at this point in the history
…59135)

## Summary

Adds missing `/internal` prefixes to synthetics api routes
  • Loading branch information
dominiqueclarke authored Jun 6, 2023
1 parent d1da0ee commit f48b742
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/synthetics/server/routes/filters/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f48b742

Please sign in to comment.