diff --git a/controllers/routes.js b/controllers/routes.js index ec6286a7..c15fc1d2 100644 --- a/controllers/routes.js +++ b/controllers/routes.js @@ -321,7 +321,7 @@ export function bindRoutes(app) { }); // Ping-pong to verify the server is working - app.all('/health', (req, res) => { + app.all('/healthz', (req, res) => { res.set('Cache-Control', 'no-store'); res.status(200).send('OK'); }); diff --git a/downloader.js b/downloader.js index e357b714..2676805f 100644 --- a/downloader.js +++ b/downloader.js @@ -302,7 +302,7 @@ export async function configure(startStamp) { // Start server and do manual manual url router, express is not needed const server = http .createServer(function handleRequest(req, res) { - if (req.url === '/health') { + if (req.url === '/healthz') { res.setHeader('Cache-Control', 'no-store'); res.statusCode = 200; res.end('OK'); diff --git a/uploader.js b/uploader.js index 3df8c404..874cb069 100644 --- a/uploader.js +++ b/uploader.js @@ -268,7 +268,7 @@ export function configure(startStamp) { }; const handleRequest = (req, res) => { - if (req.url === '/health') { + if (req.url === '/healthz') { res.setHeader('Cache-Control', 'no-store'); res.statusCode = 200; res.end('OK');