Skip to content

Commit

Permalink
Fiks feil hvor appen ikke ville laste pga. at vi ikke fant internarbe…
Browse files Browse the repository at this point in the history
…idsflatedecorator-assets
  • Loading branch information
slovrid committed May 10, 2024
1 parent 697a6e5 commit f8046be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<link rel="icon" href="/favicon.ico" sizes="any"> <!-- localhost -->
<link rel="icon" href="/favicon.svg" type="image/svg+xml"> <!-- AzureAd kommer fra internarbeidsflatedecorator -->
<link rel="icon" href="/veilarbportefoljeflatefs/favicon.ico" type="image/x-icon" /> <!-- openAm -->
<script src="/internarbeidsflatedecorator/v2.1/static/js/head.v2.min.js"></script>
<link rel="stylesheet" href="/internarbeidsflatedecorator/v2.1/static/css/main.css" />
<script src="%PUBLIC_URL%/internarbeidsflatedecorator/v2.1/static/js/head.v2.min.js"></script>
<link rel="stylesheet" href="%PUBLIC_URL%/internarbeidsflatedecorator/v2.1/static/css/main.css" />
<link
rel="preload"
href="https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2"
Expand Down
11 changes: 11 additions & 0 deletions src/mocks/api/modiacontextholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ export const modiacontextholderHandlers: RequestHandler[] = [
});
})
),
http.get('https://app.adeo.no/modiacontextholder/api/decorator', async () => {
await delay(DEFAULT_DELAY_MILLISECONDS);

return HttpResponse.json({
enheter: innloggetVeileder.enheter,
etternavn: innloggetVeileder.etternavn,
fornavn: innloggetVeileder.fornavn,
ident: innloggetVeileder.ident,
navn: innloggetVeileder.navn
});
}),
http.post(
'/modiacontextholder/api/context',
withAuth(async () => {
Expand Down

0 comments on commit f8046be

Please sign in to comment.