Add status page for monitoring

This commit is contained in:
Erick Ruiz de Chavez 2016-11-21 16:33:27 -05:00
parent 4369537a0d
commit 6be98cf3cc
No known key found for this signature in database
GPG key ID: 41B39A480CFAA1A2
2 changed files with 7 additions and 0 deletions

3
.jshintrc Normal file
View file

@ -0,0 +1,3 @@
{
"esversion": 6
}

View file

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