Skip to content

Commit

Permalink
logger alt mulig rart
Browse files Browse the repository at this point in the history
  • Loading branch information
sindredl committed Feb 23, 2024
1 parent a0a34c8 commit 887f671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/proxy/api-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function setupPath(app: Express) {

app.use('/tiltaksgjennomforing/api', (req, res, next) => {
console.log('apiProxy /tiltaksgjennomforing/api');
console.log('path', req.path);
console.log('url', req.url);
console.log('originalUrl', req.originalUrl);
console.log('baseUrl', req.baseUrl);

if (whitelistPaths.includes(req.path)) {
next();
} else {
Expand Down

0 comments on commit 887f671

Please sign in to comment.