diff --git a/routes/index.js b/routes/index.js index a9a01f38f..0baee989f 100644 --- a/routes/index.js +++ b/routes/index.js @@ -4,6 +4,10 @@ const express = require('express') const router = express.Router() router.get('/', function(req, res) { + const sha = require('child_process') + .execSync('git rev-parse HEAD') + .toString().trim() + const msg = `{ "status": "OK", "sha": "${sha}" }` res.status(200).send({ status: 'OK' }) })