浏览代码

Add in /status end point

James Allen 12 年之前
父节点
当前提交
c15df4c2aa
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      services/track-changes/app.coffee

+ 3 - 0
services/track-changes/app.coffee

@@ -10,6 +10,9 @@ app.use express.logger()
 
 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) ->
 	logger.error err: error, "an internal error occured"
 	res.send 500