Add status page for monitoring
This commit is contained in:
parent
4369537a0d
commit
6be98cf3cc
2 changed files with 7 additions and 0 deletions
3
.jshintrc
Normal file
3
.jshintrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"esversion": 6
|
||||
}
|
4
index.js
4
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue