Skip to content

Commit f1b522f

Browse files
committed
upgrade the /health endpoint
1 parent a3a8df1 commit f1b522f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ const upload = multer({dest: tempDir});
2323
* Health check endpoint
2424
*/
2525
app.get('/health', (req, res) => {
26-
res.send('ok');
26+
res.json({
27+
status: "up",
28+
timestamp: new Date().toISOString()
29+
});
2730
});
2831

2932
/**

0 commit comments

Comments
 (0)