From 6f34ca465e3b2628df00fbdd53c94e09bb7d2f66 Mon Sep 17 00:00:00 2001 From: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:08:58 -0800 Subject: [PATCH] UI - Update service to use the latest endpoint (#24188) ## Ad-hoc small improvement, no ticket - [x] Manual QA for all new/changed functionality Co-authored-by: Jacob Shandling --- frontend/services/entities/disk_encryption.ts | 2 +- frontend/utilities/endpoints.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/services/entities/disk_encryption.ts b/frontend/services/entities/disk_encryption.ts index 50a0eb63ef..1d41103f3d 100644 --- a/frontend/services/entities/disk_encryption.ts +++ b/frontend/services/entities/disk_encryption.ts @@ -20,7 +20,7 @@ export type IDiskEncryptionSummaryResponse = Record< const diskEncryptionService = { getDiskEncryptionSummary: (teamId?: number) => { - let { MDM_DISK_ENCRYPTION_SUMMARY: path } = endpoints; + let { DISK_ENCRYPTION: path } = endpoints; if (teamId) { path = `${path}?${buildQueryStringFromParams({ team_id: teamId })}`; diff --git a/frontend/utilities/endpoints.ts b/frontend/utilities/endpoints.ts index 312b8b110d..5de6cfcb48 100644 --- a/frontend/utilities/endpoints.ts +++ b/frontend/utilities/endpoints.ts @@ -115,7 +115,7 @@ export default { MDM_UPDATE_APPLE_SETTINGS: `/${API_VERSION}/fleet/mdm/apple/settings`, PROFILES_STATUS_SUMMARY: `/${API_VERSION}/fleet/configuration_profiles/summary`, - MDM_DISK_ENCRYPTION_SUMMARY: `/${API_VERSION}/fleet/mdm/disk_encryption/summary`, + DISK_ENCRYPTION: `/${API_VERSION}/fleet/disk_encryption`, MDM_APPLE_SSO: `/${API_VERSION}/fleet/mdm/sso`, MDM_APPLE_ENROLLMENT_PROFILE: (token: string, ref?: string) => { const query = new URLSearchParams({ token }); @@ -137,7 +137,7 @@ export default { HOST_MDM_UNENROLL: (id: number) => `/${API_VERSION}/fleet/mdm/hosts/${id}/unenroll`, HOST_ENCRYPTION_KEY: (id: number) => - `/${API_VERSION}/fleet/mdm/hosts/${id}/encryption_key`, + `/${API_VERSION}/fleet/hosts/${id}/encryption_key`, ME: `/${API_VERSION}/fleet/me`,