File tree 3 files changed +1
-5
lines changed
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { NextApiRequest , NextApiResponse } from "next" ;
2
2
import { erGyldigOrgnr } from "../../../../hooks/useOrgnr" ;
3
3
import proxyRequestWithTokenExchange from "../../../../utils/api-proxy" ;
4
- import { backendLogger } from "../../../../utils/backendLogger" ;
5
4
6
5
export default async function handler (
7
6
req : NextApiRequest ,
8
7
res : NextApiResponse ,
9
8
) {
10
- backendLogger . info ( `[DEBUG] mottok request på endepunkt /api/authenticated/sykefravarsstatistikk/aggregert` ) ;
11
9
if ( req . method !== "GET" )
12
10
return res . status ( 405 ) . json ( { error : "Method Not Allowed" } ) ;
13
11
if ( ! req . query . orgnr )
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export default async function handler(
13
13
req : NextApiRequest ,
14
14
res : NextApiResponse ,
15
15
) {
16
- backendLogger . info ( `[DEBUG] mottok request på endepunkt /api/authenticated/sykefravarsstatistikk/v2/aggregert` ) ;
17
16
if ( req . method !== "GET" )
18
17
return res . status ( 405 ) . json ( { error : "Method Not Allowed" } ) ;
19
18
if ( ! req . query . orgnr )
@@ -32,7 +31,6 @@ export default async function handler(
32
31
return res . status ( 400 ) . json ( { error : "Ugyldig orgnr" } ) ;
33
32
}
34
33
35
- backendLogger . info ( `Kaller pia-sykefraværsstatistikk for '${ orgnr } '` ) ;
36
34
return await proxyRequestWithTokenExchange (
37
35
req ,
38
36
res ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default async function handler(
34
34
return await proxyRequestWithTokenExchange (
35
35
req ,
36
36
res ,
37
- `${ process . env . SYKEFRAVARSSTATISTIKK_API_HOSTNAME } ` ,
37
+ `${ process . env . PIA_SYKEFRAVARSSTATISTIKK_HOSTNAME } ` ,
38
38
`/sykefravarsstatistikk/${ orgnr } /historikk/kvartalsvis` ,
39
39
process . env . PIA_SYKEFRAVARSSTATISTIKK_AUDIENCE ,
40
40
false
You can’t perform that action at this time.
0 commit comments