Skip to content

Commit 71b391b

Browse files
committed
Fix apps-rendering deleted express handler methods
1 parent 49b05be commit 71b391b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

apps-rendering/src/server/server.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,17 @@ app.all('*', (request, response, next) => {
409409
next();
410410
});
411411

412-
app.get('/healthcheck', (_req, res) => res.send('Ok'));
412+
app.get('/healthcheck', (_req, res) => {
413+
res.status(200).send('Ok');
414+
});
415+
416+
app.get('/favicon.ico', (_, res) => {
417+
res.sendStatus(404);
418+
});
413419

414-
app.get('/favicon.ico', (_, res) => res.status(404).end());
415-
app.get('/fontSize.css', (_, res) => res.status(404).end());
420+
app.get('/fontSize.css', (_, res) => {
421+
res.sendStatus(404);
422+
});
416423

417424
/**
418425
To enable testing in the mobile device emulators,

0 commit comments

Comments
 (0)