Skip to content

Commit

Permalink
Rename /health to /healthz
Browse files Browse the repository at this point in the history
  • Loading branch information
aeifn committed Dec 5, 2023
1 parent f27e0df commit 6c0ad3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
2 changes: 1 addition & 1 deletion downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6c0ad3e

Please sign in to comment.