From 0f0ba05ce36df4de3ed083a1ecafe39162916cce Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Sun, 22 Feb 2015 12:02:06 -0800 Subject: [PATCH] Add status --- node/routes/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/node/routes/index.js b/node/routes/index.js index cbe86d4..72f2863 100644 --- a/node/routes/index.js +++ b/node/routes/index.js @@ -54,6 +54,19 @@ router.get('/poll', function (req, res) { } }); +router.get('/status', function(req, res) { + res.send({ + status: 'good GET', + body: req.body + }); +}); +router.post('/status', function(req, res) { + res.send({ + status: 'good POST', + body: req.body + }); +}); + // Send the image rects var rects; router.post('/rects', function (req, res) {