From 9e8a029a671c1150dedf390bf4d2d72b0d11a5b7 Mon Sep 17 00:00:00 2001 From: Jeffrey Sun Date: Mon, 19 Dec 2016 15:39:09 -0800 Subject: [PATCH] healthcheck route --- js/fox.js | 2 +- server.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/fox.js b/js/fox.js index 763d06c..b107c58 100644 --- a/js/fox.js +++ b/js/fox.js @@ -61,7 +61,7 @@ var Fox = function (IMG_WIDTH, IMG_HEIGHT, seed) { height: eyeHeight, width: eyeHeight/2, style: 'ellipse', - //style: chance.pickone(['ellipse', 'smiley']), + // style: chance.pickone(['ellipse', 'smiley']), left: { x: origin.x + (headWidth/2) - offsetX, y: origin.y + (headHeight/2) + offsetY diff --git a/server.js b/server.js index 94be89d..e22dd66 100644 --- a/server.js +++ b/server.js @@ -51,6 +51,10 @@ app.get('/', function(req, res) { res.end(buffer, 'binary'); }); +app.get('/healthcheck', function(req, res) { + res.status(200).end(); +}); + app.get('/:width', function(req, res) { var width = parseInt(req.params.width) || 400; var seed = uuid();