Skip to content

Commit

Permalink
Logge hvilken modus vi starter i
Browse files Browse the repository at this point in the history
  • Loading branch information
Oddsor committed Jan 9, 2025
1 parent 0c99b75 commit 98ea547
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,21 @@ async function startServer(): Promise<void> {
}

async function startMedNavDekoratoren() {
console.log('Starter med nav-dekoratør...');
node.get(['/tiltaksgjennomforing/', '/tiltaksgjennomforing/*'], (req, res) =>
appMedNavDekoratoren.getNavdekoratoren(indexPath, req, res),
);
}

async function startMedModiaDekoratoren() {
console.log('Starter med modia-dekoratør...');
node.get(['/*', '/tiltaksgjennomforing/', '/tiltaksgjennomforing/*'], (req, res) =>
appMedModiaDekoratoren.getModiaDekoratoren(indexPath, req, res),
);
}

async function startLabs() {
console.log('Starter i labs-modus...');
node.get(['/tiltaksgjennomforing/', '/tiltaksgjennomforing/*'], (_, res) => {
res.sendFile(path.resolve(__dirname, '../client', 'index.html'));
});
Expand Down

0 comments on commit 98ea547

Please sign in to comment.