mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add in /status end point
This commit is contained in:
parent
e0402692cf
commit
c15df4c2aa
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue