Skip to content

Commit

Permalink
add: getRisikoscenarioByPvkDokumentId
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremiah Uy <[email protected]>
  • Loading branch information
andregroseth and JeremiahUy committed Nov 27, 2024
1 parent e34b84b commit 3de190e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/frontend/src/api/util/RisikoscenarioApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ export const getRiskoscenarioPage = async (pageNumber: number, pageSize: number)
export const getRisikoscenario = async (id: string) => {
return (await axios.get<IRisikoscenario>(`${env.backendBaseUrl}/riskoscenario/${id}`)).data
}

export const getRisikoscenarioByPvkDokumentId = async (pvkDokumentId: string) => {
return (
await axios.get<IPageResponse<IRisikoscenario>>(
`${env.backendBaseURl}/risikoscenario/pvkdokument/${pvkDokumentId}`
)
).data
}

0 comments on commit 3de190e

Please sign in to comment.