mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added project status endpoint
used for getting the server a project is on
This commit is contained in:
parent
d416f75c2c
commit
e024d3f503
2 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,7 @@ app.delete "/project/:project_id", CompileController.clearCache
|
|||
app.get "/project/:project_id/sync/code", CompileController.syncFromCode
|
||||
app.get "/project/:project_id/sync/pdf", CompileController.syncFromPdf
|
||||
app.get "/project/:project_id/wordcount", CompileController.wordcount
|
||||
app.get "/project/:project_id/status", CompileController.status
|
||||
|
||||
ForbidSymlinks = require "./app/js/StaticServerForbidSymlinks"
|
||||
|
||||
|
|
|
@ -78,3 +78,7 @@ module.exports = CompileController =
|
|||
res.send JSON.stringify {
|
||||
texcount: result
|
||||
}
|
||||
|
||||
status: (req, res, next = (error)-> )->
|
||||
res.send("OK")
|
||||
|
||||
|
|
Loading…
Reference in a new issue