diff --git a/frontend/src/apiDefinitions.ts b/frontend/src/apiDefinitions.ts index e1a3e759..f789cfe0 100644 --- a/frontend/src/apiDefinitions.ts +++ b/frontend/src/apiDefinitions.ts @@ -435,7 +435,7 @@ export interface PipelineRun { vm_image_build: unknown[]; //TODO - @Venefilyn - No clue what it should be } -// /api/osh-scans +// /api/openscanhub-scans export interface OSHScanGroup { anitya_package: string | null; anitya_project_id: number | null; @@ -461,7 +461,7 @@ export interface OSHScanGroup { url: string; } -// /api/osh-scans/$id +// /api/openscanhub-scans/$id export interface OSHScan { anitya_package: string | null; anitya_project_id: number | null; diff --git a/frontend/src/queries/osh/oshScan.ts b/frontend/src/queries/osh/oshScan.ts index 59d90a93..d1611af2 100644 --- a/frontend/src/queries/osh/oshScan.ts +++ b/frontend/src/queries/osh/oshScan.ts @@ -13,9 +13,12 @@ export const fetchOSHScan = async ({ id, signal, }: fetchOSHScanProps): Promise => { - const data = await fetch(`${import.meta.env.VITE_API_URL}/osh-scans/${id}`, { - signal, - }) + const data = await fetch( + `${import.meta.env.VITE_API_URL}/openscanhub-scans/${id}`, + { + signal, + }, + ) .then((response) => response.json()) .catch((err) => { if (err.status === 404) { diff --git a/frontend/src/queries/osh/oshScans.ts b/frontend/src/queries/osh/oshScans.ts index 5e7ed4f7..bc039d6c 100644 --- a/frontend/src/queries/osh/oshScans.ts +++ b/frontend/src/queries/osh/oshScans.ts @@ -14,7 +14,7 @@ export const fetchScans = async ({ signal, }: fetchScansProps): Promise => { const data = await fetch( - `${import.meta.env.VITE_API_URL}/osh-scans?page=${pageParam}`, + `${import.meta.env.VITE_API_URL}/openscanhub-scans?page=${pageParam}`, { signal }, ) .then((response) => response.json())