Skip to content

Commit

Permalink
Update package url path changes (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Jul 3, 2024
1 parent 26995b5 commit 8efe41b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/app/api/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const API = "/api";
export const ADVISORIES = API + "/v1/advisory";
export const VULNERABILITIES = API + "/v1/vulnerability";
export const SBOMS = API + "/v1/sbom";
export const PACKAGES = API + "/v1/package";
export const PACKAGES = API + "/v1/purl";
export const IMPORTERS = API + "/v1/importer";

export interface PaginatedResponse<T> {
Expand Down Expand Up @@ -178,7 +178,8 @@ export const deleteImporter = (id: number | string) =>
.delete<Importer>(`${IMPORTERS}/${id}`)
.then((response) => response.data);

export const getImporterReports = (id: string) => getHubPaginatedResult<ImporterReport>(`${IMPORTERS}/${id}/report`, {});
export const getImporterReports = (id: string) =>
getHubPaginatedResult<ImporterReport>(`${IMPORTERS}/${id}/report`, {});

export const getLastImporterReport = (id: string) => {
const params: HubRequestParams = {
Expand Down

0 comments on commit 8efe41b

Please sign in to comment.