Skip to content

Commit 0d16535

Browse files
committed
add to health check
1 parent 938e8b4 commit 0d16535

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ router.post("/select-player/:symbol", auth, handlePlayerSelection);
99
router.post("/click/:cell", auth, handleClaimCell);
1010
router.post("/reset", auth, handleResetBoard);
1111

12+
const SERVER_START_DATE = new Date();
1213
router.get("/system/health", (req, res) => {
1314
return res.json({
1415
appVersion: getVersion(),
1516
status: "OK",
17+
deployDate: SERVER_START_DATE,
1618
envs: {
19+
COMMIT_HASH: process.env.COMMIT_HASH,
1720
NODE_ENV: process.env.NODE_ENV,
1821
INSTANCE_DOMAIN: process.env.INSTANCE_DOMAIN,
1922
INTERACTIVE_KEY: process.env.INTERACTIVE_KEY,

0 commit comments

Comments
 (0)