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 <jacob@fleetdm.com>
This commit is contained in:
jacobshandling 2024-12-03 15:08:58 -08:00 committed by GitHub
parent 8b2c04e790
commit 6f34ca465e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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 })}`;

View file

@ -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`,