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);