Skip to content

Commit

Permalink
prov igjen
Browse files Browse the repository at this point in the history
  • Loading branch information
sindredl committed Aug 9, 2024
1 parent 758db92 commit 9c06f8e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server/src/proxy/api-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ const setup = (app: Express, audience: string) => {
res.status(401).send();
});

app.use('/tiltaksgjennomforing/api/kodeverk', (req, res, next) => {
console.log('api/kodeverk');
next();
});

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

0 comments on commit 9c06f8e

Please sign in to comment.