feat(core): Upgrade to express 5 to address CVE-2024-52798 (#14332)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-03 13:43:52 +02:00
committed by GitHub
parent 02d11b5e7a
commit 4110f3188e
22 changed files with 465 additions and 327 deletions

View File

@@ -100,8 +100,12 @@ export class WorkerServer {
const { health, overwrites, metrics } = this.endpointsConfig;
if (health) {
this.app.get('/healthz', async (_, res) => res.send({ status: 'ok' }));
this.app.get('/healthz/readiness', async (_, res) => await this.readiness(_, res));
this.app.get('/healthz', async (_, res) => {
res.send({ status: 'ok' });
});
this.app.get('/healthz/readiness', async (_, res) => {
await this.readiness(_, res);
});
}
if (overwrites) {