diff --git a/server/src/proxy/api-proxy.ts b/server/src/proxy/api-proxy.ts index 2e7b93c1d..ad92c0bf2 100644 --- a/server/src/proxy/api-proxy.ts +++ b/server/src/proxy/api-proxy.ts @@ -41,6 +41,15 @@ const setup = (app: Express, audience: string) => { }), ); + app.use( + '/tiltaksgjennomforing/api/kodeverk', + proxy(process.env.APIGW_URL, { + proxyReqPathResolver: (req) => { + return req.originalUrl.replace('/tiltaksgjennomforing/api', '/tiltaksgjennomforing-api'); + }, + }), + ); + app.use( '/tiltaksgjennomforing/api', proxy(process.env.APIGW_URL as string, {