From 6be98cf3ccd46a588c6d130f230457bb08f1a924 Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez Date: Mon, 21 Nov 2016 16:33:27 -0500 Subject: [PATCH] Add status page for monitoring --- .jshintrc | 3 +++ index.js | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..2b6f469 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6 +} diff --git a/index.js b/index.js index acbf5ce..c861c01 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,10 @@ var server = restify.createServer(); server.use(restify.CORS()); server.use(restify.bodyParser()); +server.get('/status', (req, res, next) => { + res.send('contact running'); +}); + server.post('/:_to', (req, res, next) => { const { formData, fields } = parseRequest(req);