Add in /status end point

This commit is contained in:
James Allen 2014-03-03 13:14:01 +00:00
parent e0402692cf
commit c15df4c2aa

View file

@ -10,6 +10,9 @@ app.use express.logger()
app.post "/doc/:doc_id/flush", HttpController.flushUpdatesWithLock app.post "/doc/:doc_id/flush", HttpController.flushUpdatesWithLock
app.get "/status", (req, res, next) ->
res.send "track-changes is alive"
app.use (error, req, res, next) -> app.use (error, req, res, next) ->
logger.error err: error, "an internal error occured" logger.error err: error, "an internal error occured"
res.send 500 res.send 500