Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sindredl committed Aug 9, 2024
1 parent c823e5d commit 4e56ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/proxy/api-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const setup = (app: Express, audience: string) => {

app.use('/tiltaksgjennomforing/api', (req, res, next) => {
console.log('apiProxy /tiltaksgjennomforing/api');
console.log('path:', req.path, 'url:', req.url);
if (!req.headers['authorization'] && !publicPaths.includes(req.path)) {
res.status(401).send();
} else {
Expand Down

0 comments on commit 4e56ac4

Please sign in to comment.