diff --git a/src/hooks/__tests__/fetchConstants.test.tsx b/src/hooks/__tests__/fetchConstants.test.tsx index db60cffad..393f45465 100644 --- a/src/hooks/__tests__/fetchConstants.test.tsx +++ b/src/hooks/__tests__/fetchConstants.test.tsx @@ -30,7 +30,7 @@ describe('fetchArches', () => { }, { interval: 1 }); expect(spy).toHaveBeenCalledTimes(1) expect(spy).toHaveBeenCalledWith( - "https://api.adoptium.net/v3/info/available/architectures" + "https://api.adoptium.net/v3/types/architectures" ); expect(result.current).toMatchSnapshot() }) @@ -61,7 +61,7 @@ describe('fetchOses', () => { }, { interval: 1 }); expect(spy).toHaveBeenCalledTimes(1) expect(spy).toHaveBeenCalledWith( - "https://api.adoptium.net/v3/info/available/operating_systems" + "https://api.adoptium.net/v3/types/operating_systems" ); expect(result.current).toMatchSnapshot() }) diff --git a/src/hooks/fetchConstants.tsx b/src/hooks/fetchConstants.tsx index 4be8f91c7..f8f0353cf 100644 --- a/src/hooks/fetchConstants.tsx +++ b/src/hooks/fetchConstants.tsx @@ -10,7 +10,7 @@ export function fetchOses(isVisible: boolean): OperatingSystem[] { useEffect(() => { if (isVisible) { (async () => { - const url = `${baseUrl}/info/available/operating_systems`; + const url = `${baseUrl}/types/operating_systems`; axios.get(url) .then(function (response) { @@ -38,7 +38,7 @@ export function fetchArches(isVisible: boolean): Architecture[] { useEffect(() => { if (isVisible) { (async () => { - const url = `${baseUrl}/info/available/architectures`; + const url = `${baseUrl}/types/architectures`; axios.get(url) .then(function (response) {