Преглед на файлове

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