Skip to content

Commit

Permalink
Bruk v3 lest-aktivitetsplan (uten fnr i url) (#1276)
Browse files Browse the repository at this point in the history
* Bruk v3 lest-aktivitetsplan (uten fnr i url)

* Alter mock
  • Loading branch information
tu55eladd committed May 7, 2024
1 parent 3d76036 commit 7a2214c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/oppfolgingAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ export const fetchHarFlereAktorId = (fnr: string | undefined): Promise<boolean>
postAsJson(`${OPPFOLGING_BASE_URL}/v3/oppfolging/harFlereAktorIderMedOppfolging`, fnr ? { fnr } : undefined);

export const doLesAktivitetsplan = (fnr: string) => {
return postAsJson(`${OPPFOLGING_BASE_URL}/${fnr}/lestaktivitetsplan`);
return postAsJson(`${OPPFOLGING_BASE_URL}/v3/veileder/lest-aktivitetsplan`, { fnr });
};
1 change: 1 addition & 0 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const handlers = [
rest.post('/veilarboppfolging/api/v3/maal/hent-alle', failOrGetResponse(getMaalFeiler, malListe)),
rest.post('/veilarboppfolging/api/v3/maal', failOrGetResponse(maalFeilet, opprettMal)),
rest.post('/veilarboppfolging/api/:fnr/lestaktivitetsplan', (_, res, ctx) => res(ctx.status(204))),
rest.post('/veilarboppfolging/api/v3/veileder/lest-aktivitetsplan', (_, res, ctx) => res(ctx.status(204))),
rest.post('/veilarboppfolging/api/v3/oppfolging/settDigital', failOrGetResponse(oppfFeilet, settDigital)),

// veilarbdialog
Expand Down

0 comments on commit 7a2214c

Please sign in to comment.